Option -Indexes <Location /.git> Order deny, allow Deny from all </Location>