Github Desktop Authentication Failed

蹲街弑〆低调 提交于 2020-01-02 03:36:10

问题


Using: Windows 10, Github Desktop, Git 2.19.1.windows.1(64bit), VisualStudio VSTS

Background: Managed to add the repository I had in my machine, but I can't do anything with it. I have access to the remote repository, I used gittortoise before, and I could commit just fine.

Procedure: Trying to use Github desktop to fetch, pull, or commit changes to remote.

Error: Authentication Failed (We were unable to authenticate with repository. Please enter your username and password to try again.)

Attempt: Tried to input the username and password I used to login visual studio vsts, it keeps giving me the same error.

Objective: Fetch, pull, commit from github desktop to remote repository.


回答1:


Actually, the guy above, @bhoeschen, is spot on.

Instead entering your VSTS / Azure DevOPS username and password, rather create a Personal Access Token (PAT), and use that for the password.

https://docs.microsoft.com/en-au/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate

Condensed instructions from that page:

  1. Sign in to either your Azure DevOps organization
  2. From your home page, open your profile. Go to your security details.
  3. Create a personal access token.
  4. Name your token. Select a lifespan for your token.
  5. Select the scopes that this token will authorize for your specific tasks.
  6. When you're done, make sure to copy the token. You'll use this token as your password.


来源:https://stackoverflow.com/questions/52707910/github-desktop-authentication-failed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!