首页 > 其他 > 详细

github 如何合并不同分支

时间:2015-11-30 13:02:18      阅读:531      评论:0      收藏:0      [点我收藏+]

From:

http://stackoverflow.com/questions/1123344/merging-between-forks-in-github

 

1. 添加remote original 分支,名字貌似喜欢叫upstream

git remote add upstream git://github.com/octocat/Spoon-Knife.git

2. fetch

git fetch upstream

3. 然后会看到各种versions

From git://github.com/octocat/Spoon-Knife.git
 * [new branch]      gh-pages   -> upstream/gh-pages
 * [new branch]      master     -> upstream/master

4. Merge 或者 pull

git merge upstream/master

或者pull

git pull upstream/master

 

github 如何合并不同分支

原文:http://www.cnblogs.com/liangnote/p/5006710.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!