These are scripts executed by Git at specific steps of the version control workflow, depending on their name.
pre-commitruns before attempting to commit, and prevents committing to the local master branch.
To install,
$ ./install_hooks.bashTo read more about hooks, read the Pro Git chapter.