github and gitlab provide an option to set a “noreply” style email address as the publicly visible email address for an account including as the email address for commits. The github version is <username>@users.noreply.github.com and github also provides guards against a user accidently leaking their real email address during a push from a local repository to github.
I’ve been unable to determine whether codeberg or sourcehut provide a similar option, so I am asking here.
If you don’t want to include your email address with your commits, you can opt to specify USERNAME@noreply.codeberg.org here instead, where USERNAME is your Codeberg username.
There is also an option to hide your email in the profile settings.
These settings may not be the same as what GitHub offers but I haven’t investigated this too much.