1
1

More than 1 year has passed since last update.

GitHubで特定コミット,ブランチの差分を確認する方法

Posted at

概要

GitHubのGUI上で、特定コミット同士の差分を確認する方法を備忘録として残しておきます。特定ブランチ同士の差分の確認方法も合わせて記載しておきます。

結論

特定コミット同士の差分確認方法

https://github.com/[ユーザー名]/[リポジトリ名]/compare/[コミットID①]...[コミットID②]

特定ブランチ同士の差分確認方法

https://github.com/[ユーザー名]/[リポジトリ名]/compare/[ブランチ名①]...[ブランチ名②]

特定コミット同士の差分確認方法の詳細

例として、私のgithubのリポジトリで確認してみます。コミットIDが99c7f45f7da013の差分が確認できるようになっていると思います。
https://github.com/Shota0616/docker_django/compare/99c7f45...f7da013

コミットIDは以下の赤枠の部分を押下すると
スクリーンショット 2023-05-20 12.09.43.png
下の画面に遷移して赤枠の中がコミットIDになります。
スクリーンショット 2023-05-20 12.09.55.png

特定ブランチ同士の差分確認方法の詳細

こちらも例として私のリポジトリで確認してみます。ちょっと下の例だと差分無いですが、差分があるブランチ同士だと差分が出るはずです。
https://github.com/Shota0616/docker_django/compare/main...feature

1
1
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
1
1