But no, instead one runs around and starts a petition.
For him, I would expect to call out the clause that "allows" GitHub to do that as it is quite sure illegal in some European counties to have such a arbitrary termination policy. And maybe even start a legal case about it and call for support.
But this way it simply sounds like "please take me back" begging.
It provides (or may provide) a stronger legal backing for GitHub if they have to terminate service for some reasonable reason that cannot be anticipated or enumerated in advance, in other words a judgement call, where the termination of service might be challenged legally or result in a lawsuit.
There are surely situations where action rather than pussy footing would be the right thing for GitHub to do, against a vexatious user with a penchant for abusing the service and using the legal system to incur costs on GitHub while doing so.
It would be much better if the clause was not so draconian. But I'm not sure what kinds of termination clause would protect GitHub in situations where it needs the flexibility to make judgement calls.
(ps. I don't want to imply the OP's GitHub account is in this category; I'm sure it isn't. I'm talking only about why the clause may be in the ToS.)
"GitHub has the right to suspend or terminate your access to all or any part of the Website at any time, with or without cause, with or without notice, effective immediately. GitHub reserves the right to refuse service to anyone for any reason at any time."
https://docs.github.com/en/github/site-policy/github-terms-o...
People, please read and question terms of online services.