Track Awesome Git Hooks Updates Daily
:anchor: A curated list of awesome git hooks
🏠 Home · 🔍 Search · 🔥 Feed · 📮 Subscribe · ❤️ Sponsor · 😺 CompSciLauren/awesome-git-hooks · ⭐ 812 · 🏷️ Development Environment
Nov 15, 2020
Written Guides / update
Sep 11, 2020
Tools / update
- Git Build Hook Maven Plugin (⭐68) - Install Git hooks and config during a Maven build.
Oct 01, 2019
Tools / update
- pre-commit (⭐9k) - A framework for managing and maintaining multi-language pre-commit hooks.
Aug 24, 2019
Git Hook Scripts / commit-msg
- enforce-insert-issue-number (⭐806) - Make sure user did not delete the ISSUE-[#] string that was generated by prepare-commit-msg/insert-issue-number.hook.
Git Hook Scripts / post-checkout
- delete-pyc-files (⭐806) - Delete all .pyc files every time a new branch is checked out.
- new-branch-alert (⭐806) - Display a message when a new branch is checked out for the first time.
Git Hook Scripts / post-update
- update-server-info (⭐806) - Prepare a packed repository for use over dumb transports (e.g. http).
Git Hook Scripts / pre-commit
- format-code (⭐806) - Run command to format code and re-add any files modified after formatting.
- search-term (⭐806) - Fail commit if a specific term is found in the code.
- spell-check-md-files (⭐806) - Check files with .md extension for spelling errors.
- verify-name-and-email (⭐806) - Fail commit if user.name or user.email is incorrect.
Git Hook Scripts / prepare-commit-msg
- include-git-diff-name-status (⭐806) - Include the output of "git diff --name-status -r" into the message, just before the "git status" output.
- insert-issue-number (⭐806) - Insert issue number to beginning of the commit message.
Git Hook Scripts / pre-push
- prevent-bad-push (⭐806) - Prevent push of commits where the log message starts with "WIP" (work in progress).
Git Hook Scripts / pre-rebase
- prevent-rebase (⭐806) - Prevent topic branches that are already merged to 'next' branch from getting rebased, because allowing it would result in rebasing already published history.
Git Hook Scripts / query-watchman
- fsmonitor-watchman (⭐806) - Output to stdout all files that have been modified since a given time.
Git Hook Scripts / update
- update (⭐806) - Block unannotated tags from entering.
Aug 22, 2019
Video Guides / update
Aug 20, 2019
Tools / update
- CaptainHook (⭐787) - Git hooks manager for PHP developers.
Aug 12, 2019
Quick Start / update
- Pick a hook, any hook! Try the "verify-name-and-email" one if you're not sure where to start.
- Navigate to your project's hooks folder (.git/hooks).
- You should see a list of files already in there. Create a new file called the exact commit type that you want to use (eg: "commit-msg", "pre-rebase", "pre-commit", etc). Do not give it an extension.
- Open your new file and paste the code from the hook you chose out of this repo (eg: verify-name-and-email.hook (⭐806)).
- Save file. Done! Now the git hook will be triggered automatically.
Aug 09, 2019
Tools / update
- Husky (⭐28k) - Manage git hooks with a nice user interface.
- Overcommit (⭐3.7k) - A fully configurable and extendable git hook manager.
Jul 27, 2019
Written Guides / update
Video Guides / update