Pivotal Tracker Git Hook
At work we use Pivotal Tracker to manage some of our projects and we like to use the Post-Commit Hook Integration. Basically, if you put the Pivotal Tracker story number in your commit message, it will associate the commit with the story. It’s a nice feature that makes it easy to tie your code changes to features.
The problem is that I often forget to include the story number in my commit message. So, I wrote a small git commit-msg hook to check for a story number. If the message does not include one, the commit is aborted. I’ve been using the hook for a while and it’s been very helpful, so I’m publishing it.
The code is available on Github under an MIT license: