Security considerations when having the .git directory in a public directory

Good morning

I am using git(hub) to version my Kirby content, so obviously I had to create a repo in my public_html folder. Since it is best practice not to allow access to the .git directory which is created when initializing a repo (it includes config files, head etc) I added a

RedirectMatch 404 /.git

to my .htaccess - which is not necessary anyway I found when Kirby is installed in the folder but better be sure.

Anything else I need to think of?

Thanks
Andreas