Github桌面身份验证失败 [英] Github Desktop Authentication Failed

查看:2588
本文介绍了Github桌面身份验证失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用:Windows 10,Github Desktop,Git 2.19.1.windows.1(64位),VisualStudio VSTS

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

背景:设法添加我在计算机中拥有的存储库,但是我无法对其进行任何操作.我可以访问远程存储库,以前使用过gittortoise,我可以提交就可以了.

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.

过程:尝试使用Github桌面获取,拉取或提交对远程的更改.

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.)

尝试:试图输入我用来登录Visual Studio vsts的用户名和密码,但它总是给我同样的错误.

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

目标:从github桌面获取,拉取,提交到远程存储库.

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

推荐答案

实际上,上面那个@bhoeschen的家伙在现场.

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

代替输入您的 VSTS/Azure DevOPS 用户名和密码,而是创建一个个人访问令牌(PAT),并将其用作密码.

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/zh-CN/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate

该页面上的简要说明:

  1. 登录到您的Azure DevOps组织
  2. 在您的主页上打开您的个人资料.转到您的安全详细信息.
  3. 创建个人访问令牌.
  4. 命名令牌.选择令牌的寿命.
  5. 选择此令牌将为您的特定任务授权的范围.
  6. 完成后,请确保复制令牌.您将使用此令牌作为密码.

这篇关于Github桌面身份验证失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆