This hooks will remind you to reference task in your commit, and remember your task ref for branch. Your commit messages will have style "[reference] message"
- Create two files in your repo - e.g.
[PROJECT_ROOT]/hooks/prepare-commit-msg.rb
and[PROJECT_ROOT]/hooks/post-checkout.rb
- Copy to first file (here will assume that this is a
[PROJECT_ROOT]/hooks/prepare-commit-msg.rb
):
#!/usr/bin/env ruby