I've got a recurring problem with GIT workflow in our company.
Each commit is required to have a link to task which current feature branch is based on. But when I have more than 100 commits on my feature branch, each time I need to copy that link from somewhere - it is time consuming and frustrating.
I've thought about adding a hook to .git in project directory - each time I create a new branch, I add information about link to some file (or even git branch), and when I commit something, it is automatically appended to commit message.
Is this even possible? Is there any other way to do it?