Getting “fatal: Authentication failed” -error when sending git commands in Windows 10

后端 未结 9 1175
孤独总比滥情好
孤独总比滥情好 2021-01-30 01:40

After updating domain password, accessing git-repo is no longer possible. VS Code and Source Tree as well as Visual Studio are returning the following error message on pull, pus

9条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-30 02:18

    Using Git for Windows (2.30.0), with the cross platform credential manager, with the remote set as a https GitHub address, to a public repository, doing git push by itself wasn't sufficient.

    Instead I had to explicitly do git push origin main (replace main with master, or whatever your branch is) to have Git for Windows load a GitHub authentication page where I could authorize the application.

    Creating a personal access token, as noted in another answer, was not necessary. Windows credentials were not present in Windows Credential Manager, but were added as Generic Windows Credentials via this method.

提交回复
热议问题