Git
First of all, we need to clone a project. Anything will do; you can create a brand new one on GitHub all by yourself if you want. It may be a good idea to place the code that we wrote in Chapter 1, Creating a Fast Feedback Loop in that repository.
Once we have cloned a project from GitHub, the next step is to go to the SCM root folder. Git creates a hidden folder called .git that holds all the information about your project that Git needs to do its job. We are going to go into this folder, and then into the hooks subfolder by using this code:
cd .git/hooks
Git has a series of predefined hook names. Whenever you perform a Git command, Git will have a look in the hooks folder to see whether there are any files that match any predefined ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access