Skip to content
Discussion options

You must be logged in to vote

GitHub automatically redirects links from your old username to the new one.
But the url pointing to your profile will return status 404 so if you have any references to that username, you'd have to change them.
But if someone claims your old username and creates repository with the same name, the redirect would not work.
You can apply this command to your local repositories to change the remote url:
git remote set-url origin https://github.com/newusername/repository.git

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@CodeByStella

This comment was marked as off-topic.

@davevad93
Comment options

Answer selected by CodeByStella
Comment options

You must be logged in to vote
2 replies
@CodeByStella

This comment was marked as off-topic.

@davevad93
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants