プロジェクトAをリモートに設定し、フェッチする必要があります。
origin https://github.com/toubou/projectA.git (fetch)
origin https://github.com/toubou/projectA.git (push)
あなたは、元のプロジェクト
$ git remote add upstream https://github.com/ORGINALREPO/projectA.git
をマッピングするために別のエントリを追加する必要があります:ユーザーがPRを開く
のは、あなたのgit remote -v
があるとしましょう210
、あなたのgit remote
は次のようになります。今、あなたは
origin https://github.com/toubou/projectA.git (fetch)
origin https://github.com/toubou/projectA.git (push)
upstream https://github.com/ORGINALREPO/projectA.git (fetch)
upstream https://github.com/ORGINALREPO/projectA.git (push)
:その後、
$ git fetch upstream
、ユーザーがPRを開くブランチをチェックアウト:
$ git checkout branch_name
何@cpanato