After checking out on your local machine, copy the files from here to: ../.git/hooks Note they can be optimized for Windows. Remove some lines if you're on UNIX (see inside the files).