Skip to content

Instantly share code, notes, and snippets.

@nathggns
Created July 1, 2013 10:57
Show Gist options
  • Select an option

  • Save nathggns/5899953 to your computer and use it in GitHub Desktop.

Select an option

Save nathggns/5899953 to your computer and use it in GitHub Desktop.
Get the SHA1 of your latest git commit
git log -n 1 | grep commit | awk ' { print $2 } '| tr -s " "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment