Skip to content

Instantly share code, notes, and snippets.

@alecthegeek
Created November 4, 2009 22:04
Show Gist options
  • 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