How to test git hooks
Answer this four-years-old question. If you’d like to test hook, you need to test in local environment first, I give the detail commands for following up, use post-receive as sample: $ mkdir /tmp/hook_test $ cd /tmp/hook_test # set local git repo, where you put hooks in it. $ git clone –bare https://github.com/git/git.git # set develop … Read more