# Disallow viewing of .svn and .git and .hg directory contents <Directory ~ \.(svn|git|hg)> Order allow,deny Deny from all </Directory>
As well as leaving .gitignore exposed also.
# Disallow viewing of .svn and .git and .hg directory contents <Directory ~ \.(svn|git|hg)> Order allow,deny Deny from all </Directory>
As well as leaving .gitignore exposed also.