How to disable GIT hooks for security reason?
<p>If you clone a git repository, the hooks are not cloned for security reasons I suppose. But what if I get a repository by an other way like a ZIP file? How can I make sure there is no hook executed when I run GIT commands on a repository which I don't fully trust?</p>

<p>What I can think of, is to remove the executable flag of all files in the .git/hook directory. But according to the documentation, the hooks are only normally stored in this directory so there might be other places to clean first. (How to change the hook directory by the way?)</p>

<p>As an example, I'm concerned about a file like the one from this contest:</p>

<p><a href="http://hackyeaster.hacking-lab.com/hackyeaster/challenge12.html" rel="nofollow">http://hackyeaster.hacking-lab.com/hackyeaster/challenge12.html</a></p>