We mirror to github for public access; our developers all use git itself, not the web interface, for interacting with the repo.
How/what github et al. are doing to deal with this, I do not know.
Edit: nevermind, I see you are using Gitea rather than cgit/etc. I guess Gitea can't disable the problematic commit/etc views.