kintoandar / Git Hooks
Licence: mit
github_email_verify: Avoid committing to github with your corporate email
Stars: ✭ 40
Programming Languages
shell
77523 projects
Projects that are alternatives of or similar to Git Hooks
rusty-hook
git hook manager, geared toward Rust projects
Stars: ✭ 93 (+132.5%)
Mutual labels: git-hooks
Static Review
✋ An extendible framework for version control hooks.
Stars: ✭ 330 (+725%)
Mutual labels: git-hooks
Captainhook
Very flexible git hook manager for php developers
Stars: ✭ 485 (+1112.5%)
Mutual labels: git-hooks
Git Confirm
❓ Git hook to catch placeholders and temporary changes (TODO / @ignore) before you commit them.
Stars: ✭ 356 (+790%)
Mutual labels: git-hooks
detect-secrets
A developer-friendly secrets detection tool for CI and pre-commit hooks based on Yelp's detect-secrets
Stars: ✭ 43 (+7.5%)
Mutual labels: git-hooks
Composer Git Hooks
Easily manage git hooks in your composer config
Stars: ✭ 838 (+1995%)
Mutual labels: git-hooks
Fit Commit
A Git hook to validate your commit messages based on community standards.
Stars: ✭ 468 (+1070%)
Mutual labels: git-hooks
modular-git-hooks
A tool for organizing git hooks into directories of modular files.
Stars: ✭ 19 (-52.5%)
Mutual labels: git-hooks
enforce-git-message
Enforces conventional git commit messages for git repositories
Stars: ✭ 30 (-25%)
Mutual labels: git-hooks
App Githooks
Plugin-based system to run specific actions and checks when git hooks are triggered.
Stars: ✭ 5 (-87.5%)
Mutual labels: git-hooks
php-git-hooks
Git hooks for the local repository of the PHP project
Stars: ✭ 20 (-50%)
Mutual labels: git-hooks
Pre Commit Terraform
pre-commit git hooks to take care of Terraform configurations
Stars: ✭ 902 (+2155%)
Mutual labels: git-hooks
Table of Contents
Collection of git hooks
pre-commit hooks
github_email_verify
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.
Motivation
We've created this hook after we had, yet again, to rewrite history by removing the professional email from public github commits.
Install
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
Optional
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 (~/.bashrc
, ~/.zshrc
, etc).
export PRE_COMMIT_GITHUB_EMAIL='[email protected]'
Demo
It can save your bacon!
Contributors
Made with ♥️ by:
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].