Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
同じリモート リポジトリの 2 つのクローンがあります。1 つのローカル リポジトリにいくつかの変更を加えました。リモートにプッシュせずに、これらの変更を他のローカル リポジトリにプルするにはどうすればよいですか?
2 番目のクローンは、別のシステムのリモート リポジトリと同じように扱うことができます。同じ操作をすべて実行できます。
~/repo1 $ git remote add repo2 ~/repo2 ~/repo1 $ git fetch repo2 ~/repo1 $ git merge repo2/foo