- commit-msg: add ticket id from current branch name to the commit message
- pre-push: check if CHANGELOG.md has been changed and prompts a warning message if not
- create hooks directory (i.e.
~/.git-hooks
) and place hooks to it - grant hooks permissions to execute (i.e.
chmod a+x ~/.git-hooks/*
) - configure global hooks path
git config --global core.hooksPath ~/.git-hooks
- place hooks in the
<REPO_PATH>/.git/hooks
dir - grant hooks permissions to execute (i.e.
<REPO_PATH>/.git/hooks/*
)
- Unix-like system (Linux, MacOS)
- python3