Table of Contents
- Collection of git hooks
Collection of git hooks
This hook reminds you if you forgot to change your local personal email on a github repo, but you still want to use your professional email globally on your system.
We've created this hook after we had, yet again, to rewrite history by removing the professional email from public github commits.
git clone https://github.com/kintoandar/git-hooks.git cd git-hooks mkdir -p ~/.git-templates/hooks git config --global init.templatedir '~/.git-templates' ln -s $(pwd)/pre-commit/github_email_verify.sh ~/.git-templates/hooks/pre-commit
In order to have your github's email account as the default email to be used, add the following line to your shell startup file (
It can save your bacon!