Skip to content

Instantly share code, notes, and snippets.

@tandibar
Created November 22, 2011 13:34
Show Gist options
  • Save tandibar/1385667 to your computer and use it in GitHub Desktop.
Save tandibar/1385667 to your computer and use it in GitHub Desktop.
Copy latest commit hash to clipboard
git log -1 | grep "commit .*" | ruby -e "print ARGF.read.split(' ')[1]" | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment