git-hash 156 B

1234567
  1. #!/bin/bash
  2. # run this script in a git directory to get the shortened hash, eg for
  3. # discussing current build on github
  4. git log --pretty=format:'%h' -n 1