LoginSignup
7
7

More than 5 years have passed since last update.

Gitで特定のコミットの状態のブランチを作成する

Last updated at Posted at 2014-01-22

リポジトリの特定のコミットの状態のブランチを作成して、当時の状態と現在の状態で差分を取る方法。

git branch -l ブランチ名 コミット番号

もしくは、いったんチェックアウトした後にブランチを作成する。

git checkout コミット番号
git checkout -b ブランチ名

これでmasterと比較をとる、と。

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