2826 shaares
32 private links
32 private links
When certain commands are run, Git searches the .git/hooks directory for suitable hook scripts which are then executed if found. You’ll find a small set of example scripts there (you can activate them by renaming them to remove the .sample prefix and setting their executable bit), and a complete list of hooks can be found in the githooks(5) man page.
This article suggests a handful of hooks which can streamline development and help improve your efficiency.