以下是Mercurial对问题的描述:
假设:
需要:
这就是我想用Mercurial做的事情:
A> hg pull B
A> hg heads # Notice the most recent head of B
A> hg update **REV**
我如何在GIT中完成? 更具体地说:
我知道这应该是微不足道的,我仍然无法理解。
任何?
答案 0 :(得分:2)
git remote add other_repo
git fetch
git merge other_repo/branch
答案 1 :(得分:2)
git remote add a_repo a_repo_url
git fetch a_repo
git merge a_repo/branch