command-line environment, upload code to a remote git repository
Source: Internet
Author: User
1. Use clone command to clone remote code to local git clone xxx (remote_url) 2, use branch to view branch git branch-a View all branches on remote git 3, switch branch git checkout-b < specify Branch > (The specified branch can not exist) 4, for the first time, use the push command to upload the local branch to the remote git repository in git push < remote host > < remote branch > Git push Origin issue#xxx to complete the first generation The creation of the Code branch and the synchronization of the remote Git repository Next, modify the code and synchronize the changes to the remote GIT repository 1, use the status parameter to view, modify those files git status 2, use the Add parameter to add the modified file to the Git add < file path to be synced >3, git commit-m ' commit instructions ' commit modify to local repository 4, GIT pull < remote host > < remote branch > Synchronize the code in the remote Git repository to the local branch Git pull Origin issue#xxx5, gi T push < remote host > < remote branch > Push local Branch modification to a remote git repository Git push origin issue#xxx first time using git config and conflict comparison and resolution available 64 reads
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.