maxkoshel
2/5/2015 - 8:28 AM

Get first commit of current branch in git

Get first commit of current branch in git

diff --old-line-format='' --new-line-format='' <(git rev-list --first-parent "${1:-master}") <(git rev-list --first-parent "${2:-HEAD}") | head -1