Change GitHub user in windows console

Change GitHub user in windows console
0

#1

Hello, I can’t change GitHub login in windows console, I thought that it is easy as it should be, but actually, it is very tricky. I have tried https://help.github.com/articles/setting-your-username-in-git/, and when I type git config user.name it is showing new name, but when I do git push it is showing that old username don’t have permission. Does anybody know how to do it right?


#2

It should be the github repository username that should be updated, not what’s in the console. Did you move your GitHub repository or open a new one in your new account? If so, change the origin URL in your console. I can’t help with details, but hopefully that will put you in the right direction.