Skip to content

Instantly share code, notes, and snippets.

@DavidLGoldberg
Created July 26, 2012 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidLGoldberg/3182378 to your computer and use it in GitHub Desktop.
Save DavidLGoldberg/3182378 to your computer and use it in GitHub Desktop.
Grabs first few characters from commit sha
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