Created
July 26, 2012 14:28
-
-
Save DavidLGoldberg/3182378 to your computer and use it in GitHub Desktop.
Grabs first few characters from commit sha
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log -n 1 --no-merges --pretty=format:"%h" | |
#can be used for cache busting in combination with post comit... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment