I have several (Git for Windows 2.6.2 64-bit) repositories that I created and started using the same way:
- Run
git init --bare <repoName>.git in Git Bash. - Clone a new repo using SourceTree.
- Add and transfer source files (via SourceTree or EGit).
- Blah blah blah...
When trying to add a general post-commit cache to these cloned repositories, I noticed that only some of them have a .git/hooks directory. Why?
I dug questions / answers regarding missing .git/hook directories and found nothing on SO or more broadly. Git documentation mentions that repo initialization ensures that ( .git/hooks/ ) .sample are executed by default; but I really couldn't find anything that seemed to explain why my cloned repositories sometimes contain .git/hooks , and sometimes not.
Can anyone shed light on the cause and effect here? Thanks.
source share