Skip to content

Instantly share code, notes, and snippets.

@stevegrossi
Created January 10, 2014 20:03
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 stevegrossi/8361585 to your computer and use it in GitHub Desktop.
Save stevegrossi/8361585 to your computer and use it in GitHub Desktop.
When using git on a mac, this hook will speak your commit messages in a robot voice each time you commit. Just save this file within a git repository at .git/hooks/post-commit
#!/bin/bash
MESSAGE=$(git log -1 HEAD --pretty=format:%s)
say -v "Zarvox" "$MESSAGE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment