For security purposes you do not want the general public to be able to view your git or SVN directories. This is something that is often overlooked when using version control directly in a production environment.
Many hosts do not prevent this by default unfortunately. You can drop the snippet below into you
.htaccess file and it will prevent access to version control directories, such as going to http://acme-corp.com/.git/.
|# disallow access to git and svn directories|
|RedirectMatch 404 /\.(svn|git)(/|$)|