That's assuming the self-hosted git server itself was compromised, and it wasn't just a simple matter of the attacker stealing some committer's private keys.
If that's what happened, then moving to Github solves nothing.
> I definitely trust GH more than myself in managing a git infrastructure securely
That's FUD, and appropriate too considering who owns Github now.