git pushes with wrong user from terminal

前端 未结 22 1506
夕颜
夕颜 2020-12-07 07:51

I have an issue with git and my terminal.

Here\'s a gallery to show you my issue : http://imgur.com/a/6RrEY

When I push commits from my terminal, git says I

22条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-07 07:55

    I'm using Windows 10 and I faced the same issue today. In my case my credentials for different user were saved by Windows Credential manager. Thus deleting/unsetting git credentials with below command, git config --global --unset credential.helper

    didn't help. I had to manually delete the entry in Windows by following the below way,

    Start --> Control Panel ---> User Accounts ---> Manager your credentials ---> Windows Credentials

    Then search for an entry like, git:https://github.com and remove it. It works fine after that.

提交回复
热议问题