Skip to content

Instantly share code, notes, and snippets.

@arrbee
Created July 19, 2012 22:46
Show Gist options
  • Save arrbee/3147398 to your computer and use it in GitHub Desktop.
Save arrbee/3147398 to your computer and use it in GitHub Desktop.
Better help text

On the GitHub side, everything will behave as if your new username had always been your name. All of your repositories will now belong to that new name and the old username will essentially no longer exist. This may take a few minutes to complete after your initiate the change.

This means that all references to the previous username, such as https://github.com/previoususername, will now give a 404 error. We cannot set up a redirect from the old username to the new one.

You will need to update the remotes in your local repositories to point to the new location. You can use git remote -v to see all the old remotes and look for references to your old username, then use git remote set-url <name> <new-url> to update them.

Your Git history is not affected and we should properly link commits to your new username so long as you don't also change your email address.

Related Documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment