How to block Googlebot from indexing?

Had anyone successfully blocked Google from indexing their Gitea site? I had them blocked using the Robots Exclusion Standard before putting my origin online and they indexed it anyway. I’m not open to creating a Google account to request removal.

Here’s my robots.txt file:

And a related question on StackOverflow: