Create a .gitmessage file next to your global .gitconfig file, and copy the gist into it. Then, run this command:
git config --global commit.template ".gitmessage"
Create a .gitmessage file at the root of your project, and copy the gist into it. Then, add this script to your package.json file:
{
"scripts": {
"set:gitmessage": "git config --local commit.template \".gitmessage\""
}
}
Run set:gitmessage
in the prepare
/postinstall
script to automatically set it up after installing the dependencies.