Skip to content

Instantly share code, notes, and snippets.

@derozic
Last active March 7, 2018 18:18
Show Gist options
  • Save derozic/859312bd2e3c59495e67ddcf66e7cf61 to your computer and use it in GitHub Desktop.
Save derozic/859312bd2e3c59495e67ddcf66e7cf61 to your computer and use it in GitHub Desktop.
Get the latest hash from your latest github.com commit
git log -n1 --format="%h"
@derozic
Copy link
Author

derozic commented Mar 7, 2018

Useful when seeing if your latest CI build is the same on something like Netlify as your local version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment