Skip to content

Instantly share code, notes, and snippets.

@daniel12fsp
Created November 29, 2019 12:56
Show Gist options
  • Save daniel12fsp/9b69438560fd7e811356ed449b0c4fe3 to your computer and use it in GitHub Desktop.
Save daniel12fsp/9b69438560fd7e811356ed449b0c4fe3 to your computer and use it in GitHub Desktop.
Get hash first parent of branch
git log --first-parent -1 --format="%H"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment