#Useful Git Hooks
Below are a couple of simple git hooks that can be useful for controlling and formatting commits. These are generally re-hashes of other people's ideas, so I've credited these as appropriate.
Git Hooks
A git hook is a script that lives in your
.git/hooks
directory. The scripts are invoked when certain events occur within your repo, such as make a commit or pushing changes. Hooks can be used to automate and augment basic actions within your repos.
##Include an issue number in your commit message
To amend your commit messages after they have been submitted, you'll need a commit-msg
hook. I borrowed most of these ideas from @monkseal. This hook assumes that your issue numbers are formatted into you branch names in a way that you can extract using a regex.