怎么将master合并到branch.

原创
2015/09/07 15:37
阅读数 3.5K

来自SO顶得最多的答案:http://stackoverflow.com/questions/4556467/git-pull-or-git-merge-between-master-and-development-branches

This workflow works best for me:

git checkout -b develop

...make some changes...

...notice master has been updated...

...commit changes to develop...

git checkout master
git pull

...bring those changes back into develop...

git checkout develop
git rebase master

...make some more changes...

...commit them to develop...

...merge them into master...

git checkout master
git pull
git merge develop
展开阅读全文
加载中

作者的其它热门文章

打赏
0
0 收藏
分享
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部