It’s not working because you have ‘svn’ instead of ‘git’ in the rule.
All you have to do is to replace the ‘svn’ with ‘git’.
<Directorymatch "^/.*/\.git/">
Order 'deny,allow'
Deny from all
</Directorymatch>
It’s not working because you have ‘svn’ instead of ‘git’ in the rule.
All you have to do is to replace the ‘svn’ with ‘git’.
<Directorymatch "^/.*/\.git/">
Order 'deny,allow'
Deny from all
</Directorymatch>