GitHub authentication failing over https, returning wrong email address

前端 未结 8 1440
半阙折子戏
半阙折子戏 2020-12-07 09:24

Initiating a push or any other action with GitHub from the command line (over https, not ssh) that calls for the username and password not only fails but, when it does, it r

相关标签:
8条回答
  • 2020-12-07 10:20

    Same thing happened with me, when i have enabled 2-way authentication for github. Things i did to resolve:

    • Get you personal access token. This you have to check and generate if not available already. Link for this: https://github.com/settings/tokens
    • Go to your local and delete folder and re-clone branch from github.
    • Now try the command you were trying earlier i.e: git pull origin master
    • Enter username and In password paste the token generated and also don't forget to save that token somewhere, so you can re-use if required.

    Doing this will solve your issue.

    0 讨论(0)
  • 2020-12-07 10:21

    Just incase this helps anyone else also, I was signed into the mac app, command line working fine, but because I then turned on 2FA, my commands were returning the error. I had to sign out of the app, then I could use my Personal access token in my commands as per ele's answer here.

    Hopefully that helps someone!

    0 讨论(0)
提交回复
热议问题