Such an anonymous mode would be damaging for GitHub because it needs to stay friendly with its commercial and corporate customers. Besides, such a mode only provides obfuscation, but no legal protection at all. In fact, lawyers would turn it around and claim that using that mode showed that the owner of a repo was aware that what they were doing was wrong.
Your idea would have a better chance of success as a separate platform dedicated to anonymous code hosting. But that in turn would likely attract bad actors, as usual.
I meant someway for the repo to exist without coming under a specific individual, like an organisation would make more sense instead of having repos under your public profile. But then again the user has to be careful with their email addresses with every commit.
lawyers would turn it around and claim that using that mode showed that the owner of a repo was aware that what they were doing was wrong
Can’t you turn it around and claim that it was done to reduce the possibility of debating with idiots who like to unreasonably turn things around by blah blahing all possible and impossible versions out of thin air?
Your idea would have a better chance of success as a separate platform dedicated to anonymous code hosting. But that in turn would likely attract bad actors, as usual.