Checks that you are trying to push to master (or other key branches) from your local repository.
Download the above raw file (edit it as you please) and place inside your Git repository under: $GITDIR/hooks/pre-commit
where $GITDIR is typically .git
under your project working directory. Then make sure you make it executable: chmod +x .git/hooks/pre-commit