Unable to authenticate with Git Bash to Visual Studio Team Services

后端 未结 7 2153
清酒与你
清酒与你 2020-11-30 21:46

I am unable to run any commands against my remote repository at Visual Studio Team Services (VSTS) because authentication fails.

I am able to do pulls, etc. through

7条回答
  •  星月不相逢
    2020-11-30 22:24

    On Windows, you can easily create a Personal Access Token using the Git Credential Manager. It's what Visual Studio Team Services now seems to recommend over the Alternate authentication credentials.

    Just install that utility, and then the next time you git pull from Git Bash, it will prompt you for your Visual Studio Team Services access credentials. It will then create a Personal Access Token in your VSTS account, and add a couple of entries to your local Windows Credentials store.

    Quote from the site:

    It magically works when credentials are needed. For example, when pushing to Visual Studio Team Services, it automatically opens a window and initializes an oauth2 flow to get your token.

提交回复
热议问题