0

Mercurial に関する問題の説明は次のとおりです。

与えられた:

  • 2 つのリポジトリAおよびB、ここでBAのフォークです
  • 現在のディレクトリは、 Aのヒントの作業ディレクトリです。

必要:

  • Bを取り込み、最新のヘッドREVに更新します。

これは、Mercurial に関して私がやりたいことです。

A> hg pull B
A> hg heads         # Notice the most recent head of B
A> hg update **REV**

どうすればGITでそれを行うことができますか? より具体的には:

私はそれが些細なことであることを知っています、それでも私はそれを理解することができません。

誰?

4

2 に答える 2

2
git remote add other_repo
git fetch
git merge other_repo/branch
于 2012-10-31T16:59:09.190 に答える
2
git remote add a_repo a_repo_url
git fetch a_repo
git merge a_repo/branch
于 2012-10-31T17:01:19.733 に答える