Git无限期挂起 - 我认为与osx凭证助手打破了 [英] Git hangs indefinitely - broke with osx credential helper I think
问题描述
我厌倦了为我的bitbucket repo输入密码,所以我查找了一种使用ssh密钥的方法,但发生在osx证书密钥链上。我认为我已经正确安装了所有这些,并遵循git-scm书中的指示,但发生了一些不好的事情......我根本无法使用git!然后,我去了凭证-osxkeychain,但这并没有解决我的问题,也没有卸载并重新安装git。
如果我进入一个回购如果我创建了一个新的目录,并且已经有一个文件,并且运行 git status
,它会无限期地挂起。 ,cd进入它并运行 git init
,它也会无限期挂起。
当我运行 git
而没有任何参数时,输出如下:用法:git凭证-osxkeychain< get | store | erase>
。我已经看过我的 / Applications / Utilities / Keychain Acces.app
但我找不到任何要更改的东西。在这一点上,我只想 git
回来......我可以输入密码。
供参考我正在使用OSX 10.7.2
编辑以添加:哪个git
返回 / usr / bin / git
尝试gitstatus
( with 引号)。如果这样的话,你已经将 git
别名(可能是 alias git =git credential-osxkeychain
) ,你应该看看〜.profile
来查看是否可以删除别名。
(见附件调试步骤和最终解决方案的评论)。
I got tired of typing my password for my bitbucket repo so I looked up a way to use ssh keys but happened upon the osx credential keychain. I thought I had installed it all correctly by following along with what was instructed in the git-scm book but something bad happened...I can't use git at all!! I then went and rm'd the credential-osxkeychain but that didn't fix my issue, neither did uninstalling and reinstalling git.
If I go into a repo that I had previously pulled down, change a file and run git status
it hangs indefinitely.
If I make a new directory, cd into it and run git init
that will hang indefinitely as well.
When I run git
without any arguments the following is printed out: Usage: git credential-osxkeychain <get|store|erase>
. I already looked at my /Applications/Utilities/Keychain Acces.app
but I couldn't find anything to change. At this point I just want git
back...I'm fine with typing my password.
For reference I am using OSX 10.7.2
edited to add: which git
returns /usr/bin/git
Try "git" status
(with the quotes). If that works, you've aliased git
to something else (probably alias git="git credential-osxkeychain"
), and you should look in ~.profile
to see if you can remove the alias.
(See the attached commentary for the debugging steps and eventual resolution).
这篇关于Git无限期挂起 - 我认为与osx凭证助手打破了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!