Instantly share code, notes, and snippets.

@smithjessk /commit
Last active Jan 11, 2018

What would you like to do?
Copy the hash of the Git commit you're on
git show -q | head -n 1 | sed 's/commit //' | tr -d '\n' | xclip -i -selection clipboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment