I have several (Git for Windows 2.6.2 64-bit) repos that I created and started using the same way:
- Run git init --bare <repoName>.gitin Git Bash.
- Clone the new repo using SourceTree.
- Add and commit initial files (through SourceTree or EGit).
- Blah, blah, blah....
In trying to add a common post-commit hook to these cloned repos, I noticed that only some of them had a .git/hooks directory.  Why?
I dug for questions/answers regarding missing .git/hook directories and did not find anything on SO or more broadly.  Git documentation mentions that repo initialization ensures the (.git/hooks/) .sample files are executable by default; but I really could not find anything that seemed to explain why my cloned repos sometimes contain .git/hooks and sometimes do not.
Can anyone shed some light on the cause and effect at play here? Thanks.
 
     
    
 
    