Change GitHub user in windows console

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, and when I type git config 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?

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.