LoginSignup
22
20

More than 5 years have passed since last update.

[Git] 2 つのリモートリポジトリの差分を確認する

Last updated at Posted at 2014-07-16

他にスマートな方法がありそうな雰囲気をかもしだしていますが、とりあえず動作確認ができた方法が見つかりましたので投稿しておきます。

  1. まず、片方のリモートリポジトリをクローンして、ローカルの master ブランチとします。
  2. 次に git remote add-f オプションを使ってリモートブランチ tmp にもう片方のリモートリポジトリを fetch します。
  3. master ブランチとリモートブランチ tmp とで diff を取ります。
git remote add -f tmp path/to/repository
git diff master remotes/tmp/master

下記を参考にしました。ありがとうございます。
http://stackoverflow.com/questions/1968512/git-getting-the-difference-between-two-repositories

22
20
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
22
20