The lazy programmer scripts
scripts that work

Lazy see git merge history GitHub

When a git tree gets merge commits, the liniar history gets very hard to check, especially when you want to do a git bisect.

This git command will show you only the git merge commits from the base tree.

git log --graph --decorate --first-parent --pretty=format:"%h %s"

# example output from the Linux Kernel tree
# * 47fcc0360cfb Merge tag 'driver-core-4.16-rc1' of git://
# * 5d8515bc2321 Merge tag 'staging-4.16-rc1' of git://
# * db5933225f2f Merge tag 'tty-4.16-rc1' of git://
# * e4ee8b85b765 Merge tag 'usb-4.16-rc1' of git://
# * 7109a04eae81 Merge git://
# * ba49097e1de4 Merge git://
# * ca0c836d88dd Merge branch 'for-linus' of git://
# * 73da9e1a9f31 Merge branch 'akpm' (patches from Andrew)

That's all, folks!

Written by kami on Wednesday December 12, 2018
Permalink - Tags: git, github

Leave a comment

comments powered by Disqus

« Lazy enable TLS 1.2 on Windows 7 / Windows 2008 R2 - Lazy enable longer than 255 characters paths on Windows »