GitHub doesn't ask for ID. What it requires is a verified email, and since March 2023 2FA for accounts that contribute code. The 2FA can be a TOTP authenticator app instead of a phone number, and you can add a passkey or security key on top. The actual doxing risk is mostly in your git metadata, not the signup:
1. Commit email: every commit carries an author name and email. Turn on email privacy and commit as your
[email protected] address (Settings > Emails). Also set user.name / user.email in that repo's git config so your real ones never get stamped in.
2. Timezone: git records your local UTC offset in every commit. I made a test commit just now and it came out as "-0800". Running it with TZ=UTC gave "+0000". Over a few hundred commits, that offset plus your working hours narrows down where you are.
3. Separation: keep a separate account, email and SSH key for that persona, and don't reuse the key, username or writing style from your normal account. Note that GitHub won't verify disposable email addresses.
If you want to skip a GitHub account entirely, there's NIP-34 (git over Nostr): repos are announced as kind 30617 events, and patches, PRs and issues are signed by an npub. Tools include ngit and gitworkshop.dev. That's a real option, not just a theory: I queried 6 relays (including relay.ngit.dev) at 6:40 PM PT and found 298 repo announcements from 127 pubkeys, plus 727 patches/PRs/issues from 84 authors in the last 7 days.
Sources: docs.github.com (setting your commit email, mandatory 2FA, email addresses reference); github.com/nostr-protocol/nips/blob/master/34.md