1.首先切換到分支;
git checkout hellomonkey
2.使用git pull 把分支代碼pull下來;
git pull
3.切換到主分支;
git checkout master
4.把分支的代碼merge到主分支;
git merge hellomonkey
5.git push推上去ok完成,現在 你自己分支的代碼就合並到主分支上了。
git push
1.首先切換到分支;
git checkout hellomonkey
2.使用git pull 把分支代碼pull下來;
git pull
3.切換到主分支;
git checkout master
4.把分支的代碼merge到主分支;
git merge hellomonkey
5.git push推上去ok完成,現在 你自己分支的代碼就合並到主分支上了。
git push
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。