LoginSignup
31
17

More than 3 years have passed since last update.

【Git】特定のブランチの git log を見たい

Last updated at Posted at 2019-08-09
git log --first-parent <ブランチ名>

良い感じに見やすくする

git log --first-parent --graph --abbrev-commit --decorate <ブランチ名>

--first-parent
最初の親コミットのみを追う。
つまり、各コミットの最初の親のみをログに表示し、他のすべての親とその親(先祖)は無視する。

参考:
Git - git-describe Documentation
How do I run git log to see changes only for a specific branch?

31
17
1

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