首页 > 其他 > 详细

Git merge local repository

时间:2015-10-14 11:57:30      阅读:237      评论:0      收藏:0      [点我收藏+]
I‘ve met this problem for so many times and let me write a blog for solving this problem.

First, you have a repository called repo1 for example, and want to merge the repo2 to repo1 locally.What should we do for it ?

here‘s the command:

cd path/to/repo2

git remote add repo1 path/to/repo1

git fetch repo1

git merge repo1/master # or whichever branch you want to merge

git remote remove repo1

  

Git merge local repository

原文:http://www.cnblogs.com/wushuaiyi/p/4876666.html

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