Skip to content
Discussion options

You must be logged in to vote

You can transfer the repository, but you can’t truly change who authored past commits unless you rewrite Git history.

The important thing to know is that GitHub attributes commits based on the email used in the commit, not the account that owns the repo.

The safest and recommended approach:

  1. Transfer the repository using :contentReference[oaicite:0]{index=0}’s built-in transfer feature.
  2. On the new account, add and verify the email address that was used for commits on the old account.
  3. Once that email is verified, GitHub will attribute those commits to the new account’s profile and contribution graph.

If GitHub says the email is already in use:

  • Change the primary email on the old account
  • R…

Replies: 2 comments

This comment was marked as off-topic.

Comment options

You must be logged in to vote
0 replies
Answer selected by uncognic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Repositories The core of version-controlled code storage Question Ask and answer questions about GitHub features and usage
3 participants