Does switching username destroy commits?

Asked

Viewed 139 times

2

I switched my username to a more professional one. Before I switched I saw that I had some warnings that mistakes could happen when doing this, but I didn’t care because I said they were rare cases.

Turns out today I realized that my commits from before I switched username are gone. I give git log and git reflog and does not trim them. As test deletes a repository locally and cloned it again, but continued in the same.

Does anyone know if there’s a way I can recover these commits?

  • I will suggest that you contact Github staff directly. In addition to informing them how to proceed, they may have the power to reverse.

  • 1

    @Rafael, Git does not delete commits made with the old user if you switch users. Can you replay the issue, detailing how you did this and what warning messages did you receive? Without this information, it’s hard to guess the cause.

  • 1

    What is "change username"?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.