Git merge code

Source: Internet
Author: User

Background:
Recent development needs, need another small partner Meien together to develop a project, the first time offsite and small partners to write code, Meien complete the project's other half, now I and Meien have written their own code, I need to merge the code, about git pull, merge, The push action records are as follows:

1,Meien operation :

In the Meien branch, push the Meien code to Meien's local git server
git push

2, my operation (I am the Master branch):

1 in my local switch to the Meien branch:
git checkout Meien
2) then pull the code above the Meien branch:
Git pull     has now pulled Meien's code to my own local git server.
3) Now merge my local code with the code above my git server
git merge Meien      so Meien code is merged with my local code.
4 Push the merged code to GitHub:
git push

PS: About merge, Branch creation and merging principle, Liao Xuefeng big guy has more detailed explanation:
Https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/ 001375840038939c291467cc7c747b1810aab2fb8863508000

finally : This is a pleasant cooperation, but also the operation of the process recorded here, see for themselves, but also hope to help everyone.

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.