简体   繁体   English

为什么我会致命:身份验证失败<repo url></repo>

[英]Why am I getting fatal: Authentication failed for <repo URL>

I just got started on Github again, and created a new repo.我刚刚开始使用 Github,并创建了一个新的仓库。 It's a private repo, so I use git clone <URL_clone_link> , and it prompts for username and password (both of which I've verified are correct), but ends with the fatal error in the Title.这是一个私人仓库,所以我使用git clone <URL_clone_link> ,它提示输入用户名和密码(我已经验证这两个都是正确的),但以标题中的致命错误结束。

I'm using a terminal on a relatively new iMac, and it doesn't seem to be a local machine issue.我在相对较新的 iMac 上使用终端,这似乎不是本地机器问题。 I just don't understand why it won't authenticate me using the same username/pwd I use to log in.我只是不明白为什么它不会使用我用来登录的相同用户名/密码对我进行身份验证。

First, check that, as commented, you have 2FA activated .首先,检查您是否已激活 2FA
If yes, the password to enter would be a PAT (Personal Access Token) that you would need to generate and add to your tokens .如果是,输入的密码将是您需要生成添加到您的令牌的 PAT(个人访问令牌)。

Second, check your git config credential.helper output: if osxkeychai y, you might need to do:其次,检查您的git config credential.helper output:如果osxkeychai y,您可能需要执行以下操作:

 git credential-osxkeychain erase https://github.com

In order to remove the password cached by the osxkeychain credential caching setup.为了删除osxkeychain凭证缓存设置缓存的密码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 致命:身份验证失败的Google Cloud Repo - fatal: Authentication failed Google Cloud Repo 为什么我会致命:文件来自Jenkins的存储库 - Why am I getting fatal: file is outside repository from Jenkins 部署时发生“致命:身份验证失败”错误(私有存储库) - “fatal: Authentication failed” error when deploying (private repo) 推送到Bitbucket存储库时出现“致命:身份验证失败”错误 - “Fatal: authentication failed” error when pushing to bitbucket repo Azure Devops OnPremise,致命:克隆 Git 存储库时身份验证失败 - Azure Devops OnPremise, fatal: Authentication failed for when cloning Git repo 从heroku将Keystone应用程序克隆到本地存储库时,为什么会得到空的存储库? - Why am I getting an empty repo when cloning my keystone app to local repo from heroku? 我收到错误:RPC 失败; 致命:远程端在git上意外挂断 - I am getting error: RPC failed; fatal: the remote end hung up unexpectedly on git 为什么我会收到“错误无法推送一些参考”? - Why am I getting “Error failed to push some refs”? 为什么我在 IntelliJ 上收到提交错误 - 提交失败并出现错误 - Why am I getting a commit error on IntelliJ - Commit failed with error 致命:jenkins 身份验证失败 - fatal: Authentication failed for jenkins
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM