Skip to content

Instantly share code, notes, and snippets.

@alecthegeek
Created November 4, 2009 22:04
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 alecthegeek/226428 to your computer and use it in GitHub Desktop.
Save alecthegeek/226428 to your computer and use it in GitHub Desktop.
Generate build ID in Git
use the output of git log -1 '--pretty=format:%h %ai' (example: "d19611c 2009-10-01 01:58:19 -0400")
(from Nikolas Coukouma)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment