Git Super Cainiao learning --> community collaboration and branch operations

Source: Internet
Author: User
1 first add the url of the master database to the local machine, gitremoteadd & lt; RepoName & gt; & lt; URL & gt; 2. get the modification record of the master database gitfetch -- get the modification gitmerge on the server -- merge, merge the master database to your own branch gitpull -- get modification and merge gitpu 1 first add the master database url to the local machine, git remote add 2. get the modification record of the master database git fetch -- get the modification git merge on the server -- merge, merge the master database to your branch git pull -- get the modification and merge git push -- submit the modification to the server Pull Request -- apply for the merge, merge the modification to the master database, and click fork, you will create your own branch. you can submit your own issues on the master database, add the url of the master database to the local branch. 3. create a New Pull Request. click the Pull Requests button as shown in the following figure on the New pull request page. Then, click the New Pull Request button, enter title and content in the new page, and click send pull request to submit the new request. 4. view the submission results in community-based collaboration. common users only have the submission function and do not have the Merge function. only the administrator has the Merge function. the administrator can click the Merge Pull Request button to Merge the results. after the Merge is completed, the system will automatically close your request. After a common user submits the request, the system will automatically close the request. after clicking the Send button again, we will go to the Pull Requests page again, so there is no record under the open option, however, there will be a request submission record under the Close option, as shown in: 5 branch operation command git branch -- View branch git branch-d <分支名称> -- Delete branch git branch-D <分支名称> -- Force delete git checkout-B <分支名称> -- Create branch git checkout <分支名称> -- Switch branch git merge -- no-ff <分支1> -- Merge branch PS: Git branch management. you can see that there are many problems encountered in the blog development process written by instructor Ruan Yifeng, without affecting the main branch, we create a backup for the main branch, and the other is also known as the shadow of the main branch. now we perform various operations such as add, modify, delete, and so on this shadow. after testing on the branch, merge to the master database, as shown in. create the branch command git branch-continuous editing.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.