Ref. – https://stackoverflow.com/questions/6142437/make-git-directory-web-inaccessible
RedirectMatch 404 /\.git
Order allow,deny Deny from all