Git:无法清除凭据:找不到元素 [英] Git: Failed to erase credential: Element not found

查看:702
本文介绍了Git:无法清除凭据:找不到元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我对Git的使用经验有限,但我已成功完成以下操作:


  • 创建本地存储库( $ git init

  • 连接远程存储库( $ git remote add origin https:// [my remote repository] ​​



在这一点之前,一切都很顺利。但是,当我尝试与远程存储库进行交互时(通过命令行或TortoiseGit进行抽取,克隆或推送),输入我的凭据后,我会收到以下错误消息:


无法清除凭证:未找到元素


$ b

致命: https:// [我的远程资源库]


显然看起来像某种身份验证问题 - 但是,我可以登录到远程回购的Web界面,所以我确定我使用的是正确的un / pw。
我已经为Git安装了Windows Credential Store,但是引发了完全相同的错误消息。



Google没有太多帮助 - 这个解决方案似乎是Vista / 32bit特定的(我是Win7 / 64bit)和​​这个SO问题已经现在,我确信有一个简单的解决方案来解决我的问题,但我一整天都没有取得进展。任何人都可以给我一个指针?

预先感谢!

编辑:
这里是克隆命令的完整结果:


I:\ KODE \_Git \myproject> git clone https:// ...



克隆到'myproject'...



'https:// ...'的用户名:myuser



https:// myuser [at] ...':


$ b 致命:https:// ...'认证失败



解决方案

编辑:确认,这似乎是Git v1.8.3的一个问题 - 切换到v1.8.1.2解决了这个问题。在这里下载
感谢您的帮助!






呃,恰好碰巧我的一位同事拥有完全相同的这个问题独立于这个问题。



像我一样,他下载了最新的官方Git build - v1.8.3。他继续卸载最新版本并安装了v1.8.1.2,并解决了这个问题。



当我有机会时,回报。


I'm trying to set up Git on a fresh machine, and I'm having trouble authenticating with my remote repository.

I have limited experience with Git, but I have successfully done the following before:

  • Create local repository ($git init)
  • Connect with remote repository ($git remote add origin https://[my remote repository])

Everything goes well up until this point. However, when I try to interact with the remote repository - pull, clone or push - either through command line or TortoiseGit, I am greeted with the following error message upon entering my credentials:

Failed to erase credential: Element not found

fatal: Authentication failed for https://[my remote repository]

It obviously seems like some sort of authentication issue - however, I can log into the web interface of the remote repo just fine, so I'm certain I'm using the correct un/pw. I've installed the Windows Credential Store for Git, but that throws the exact same error message.

Google hasn't been much help - this solution seems to be Vista / 32bit specific (I'm Win7 / 64bit), and this SO question has been removed, leaving me none the wiser.

Now, I'm sure there's a simple solution to my problem, but I've been at it all day with no progress. Anybody able to give me a pointer?

Thanks in advance!

Edit: Here's the full results of a clone command:

I:\KODE\_Git\myproject>git clone https://...

Cloning into 'myproject'...

Username for 'https://...': myuser

Password for 'https://myuser[at]...':

fatal: Authentication failed for 'https://...'

解决方案

EDIT: Confirmed, this seems to be an issue with Git v1.8.3 - switching to v1.8.1.2 solved the problem. Download here. Thanks for helping out!


Well, it just so happened that a colleague of mine had the exact same problem last night, independent of this question.

Like me, he had downloaded the latest official Git build - v1.8.3. He proceeded to uninstall the latest build and installed v1.8.1.2 instead - and that solved the problem.

I'll give this a go when I get the chance and report back.

这篇关于Git:无法清除凭据:找不到元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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