title: How to test pre/post commit scripts in git?
body: <p>I've created a git post-commit hook in python and made a file executable and placed it into .git/post-commit. </p>
  
  <p>It works when I run it via Python. Now I want test it locally in git. How can I do that?  I can't make a commit to git locally from my computer in an easy way, right?</p>
  
  <p>Should I copy the hook file to my server and make test commits to test it? Is there another way?</p>