3 ms·
No, there is no change in how you share, nor is this any sort of local history. Git has the concept of "pre-commit hooks" which is a script that is run (by git
by ethomson 12y ago
No, there is no change in how you share, nor is this any sort of local history.
Git has the concept of "pre-commit hooks" which is a script that is run (by git itself) whenever you run "git commit", before your changes actually land in the repository. This can be used to (for example) run your local tests for you, as a sanity check.
However, your hooks are configured on a per-repository basis, and not transferred when you clone. So you would need to configure these manually each time you clone. It's easy to forget to set up the hook with all the things you need to run.
This tool is to help alleviate some of the pain in this, by having a configuration file to set up all the necessary hooks, as well as having a library of default hooks (whitespace checks, etc).