Git pushing to remote GitHub repository as wrong user

后端 未结 15 841
别跟我提以往
别跟我提以往 2020-11-30 17:49

I have a work GitHub account and a personal one. First I used the personal one for test projects, then I moved on and did a repository with the other account on the same com

15条回答
  •  悲哀的现实
    2020-11-30 18:18

    I got the same issue. Below is what happen in my case:

    I previously made git to not ask my credential every time I talk with remote repository by this: git config --global credential.helper wincred

    I resolved the issue by running the same command with "none" replacing "wincred" git config --global credential.helper none

    Then git ask my username/pass again and everything go well

提交回复
热议问题