Skip to content

Instantly share code, notes, and snippets.

@JacobHayes
Created February 5, 2016 16:52
Show Gist options
  • Save JacobHayes/76f1e0485751df636f12 to your computer and use it in GitHub Desktop.
Save JacobHayes/76f1e0485751df636f12 to your computer and use it in GitHub Desktop.
Shows the commit where this branch forked from master.
diff --old-line-format='' --new-line-format='' <(git rev-list --first-parent "${1:-master}") <(git rev-list --first-parent "${2:-HEAD}") | head -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment