Skip to content

Instantly share code, notes, and snippets.

@mezzoblue
Forked from felixge/post-commit
Created October 21, 2009 06:35
Show Gist options
  • Save mezzoblue/214933 to your computer and use it in GitHub Desktop.
Save mezzoblue/214933 to your computer and use it in GitHub Desktop.
#!/bin/sh
commits=`git log --pretty=oneline | wc -l | sed -E 's/ +//g'`
echo "Committed revision $commits."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment