There is a problem with submitting a local branch to the remote library for Ubuntu:Solution: Execute the following command:git remote add origin [email protected]:yourusername/test. GitYourUserName: Name of the GitHub registryTest: for Remote library name:The commands to be executed are:git
[emailprotected]:csdbianhua/learningGithub.git
This command will create a learninggithub folder in the current directory, which contains the files in the library.
In addition, you can use other forms of links, and the speed of using HTTPS links is slow.
Multi-person cooperation
$ Git remote-V displays detailed (with-v) Remote repository information, including t
name and email address are incorrect, you can directly write the user name and email address at the end.
After confirming that the user name and email address are correct, view the remote repository name and corresponding address.
// View the remote repository name git remote // view the address
track remote Branch master from Origin.Pushing the contents of the local library to the remote, with git push the command, is actually pushing the current branch master to the remote.Since the remote library is empty, the first t
branch of the local library to the remote repository, and then enter the user name and password as prompted As shown in figure:
Since the remote library is empty, and when we first push the master branch, with the –u parameter, GIT will not only push the local master
Git merges two remote libraries and git merges
Environment:
1. The local disk is empty and there is nothing
2. There are two different projects (projects) on the remote git
3. merge the two projects locally
Commencement:
1. clone the code of the first project from the
1, install Zshsudo apt-get install zsh2, cloning the projectgit clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh3. Create a new. zshrc fileCP ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.ZSHRC4. Back up the ~/.ZSHRC file (plan for later)CP ~/.ZSHRC ~/.zshrc.orig5, change the system default bash environmentChsh-s/bin/zsh6, exit the current user, re-login (reboot only for the root user)RebootThe
Convenient for future reference. Thank the original blogger for sharing.
When we develop a project on more than one computer, we need to constantly modify the submission and update the latest remote code on another computer, see how to get updates from the remote code warehouse to the local, summed up the article on the Internet, using the following way is relati
GitHub Upload Project Method:Install Git on your computerGit Bash HereThe general process for creating and correlating local git repositories and remote repositories is:1. Initialize this local folder as a Git manageable repositoryGit initNote: Git will automatically create
Today, I encountered such a problem, tossing a half-day, is to upload their own local code to someone's remote branch.The first thing to do is to clone someone else's project to the Local: Git clone + project addressThen go to project directory: CD + cloned project directory nameThen switch branches, git checkout + branch
There is a magic site called GitHub, hehe, from the name can be seen, this site is to provide a git warehouse hosting services, so as long as the registration of a GitHub account, you can get free git Remote Storage.Because the transfer between the local git repository and t
committed locally. 5.Remote push(Push) Right-click Current Project Team--push Branch Default is Origin Okay, click Next. Default to Master remote branch push Continue Next Click Finish "Note" If this is a native operation , you can save the password Third, the server-side set up the project 3.1Build a project
You will inevitably use remote tracking when using git. The following briefly describes some tips for using git remote.
(1) Add$ Git remote add origin https://github.com/ask/celery.gitNote: currently, we use celery's
Windows, such as d:/code/, the server SSH user is Admin,ip 192.168.1.100, then the command is git remote add Origin ssh://admin@192.168.1.100d :/code/)
If you are prompted to indicate that Origin already exists, that is, "fatal:remote origin already exists", use the GIT Remote RM Origin command to delete origin, delet
master Branch Association, You can simplify the command at a later push or pull.Once the push is successful, you can see the remote library's content on the GitHub page immediately as if it were local:From now on, as long as the local commits, you can pass the command:$ git push origin masterPush the master latest changes from your local
The premise of this summary is that the GIT server has been built and connected through the SSH protocol, see the document "Build git server under Windows XP" "Rhel Server" "Git server use base." This paper uses the git-2012-01-11 of the RHEL5.5 system, the user Root/password,git
2.1 git basics-get git repository
Description Source: https://git-scm.com/book/zh/v2/git-base-Get-git-Warehouse
If you can only read a chapter to learn
Article Directory
1. git fully resolved remote repository interaction
1.1. The concept of a central warehouse
1.2. local branch and remote branch
1.3. Pull and Fetch
1.4. about Donations
The concept of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.