2012-07-31 46 views
6

我试着添加'credential-osxkeychain'我跟着these steps,但它没有正确安装。我不再需要它。我怎样才能阻止git调用它(当我做拉)?谢谢!删除'credential-osxkeychain'

git pull 

git: 'credential-osxkeychain' is not a git command. See 'git --help'. 
Username for 'https://github.com': jzone3 
Password for 'https://[email protected]': 
git: 'credential-osxkeychain' is not a git command. See 'git --help'. 
+0

你使用的是什么版本的'git'?根据你引用的文档,在v1.7.10之前,这个信用助手不是一个命令。 – Christopher 2012-07-31 17:41:30

+0

好吧,我在旧版本(1.7.9.6)。我刚刚更新到最新版本(1.7.12),但问题仍然存在。 – 2012-07-31 18:54:03

+0

它仍然声称这不是一个git命令? – Christopher 2012-07-31 21:21:41

回答

14

我最终从配置文件中删除了osxkeychain。

git config --global --edit 
+4

感谢您的帮助...我直接使用了这个命令:** git config - 全球 - 删除部分凭证** – 2013-10-08 08:29:44

5

看来MacPorts包裹钥匙串助手,这可能是它为什么不能作为你公认的命令出现。

您可以按以下说明,直接安装助手:通过

:马格森@http://insomniacgeek.com/how-to-add-your-git-password-in-the-mac-osx-keychain/

为了不必输入您的git基于密码每次执行git的工作时间,这里是你如何可以在Mac OSX版钥匙扣存储git的密码:

检查,如果你已经安装了证书,osxkeychain帮手:

混帐凭据osxkeychain

如果没有,请下载并安装:

卷曲http://github-media-downloads.s3.amazonaws.com/osx/git-credential-osxkeychain -o混帐凭据osxkeychain 须藤MV混帐凭据osxkeychain在/ usr/local/bin目录 须藤CHMOD U + X的/ usr /本地/斌/混帐凭据osxkeychain

而且使git的使用助手:

混帐配置--global credential.helper osxkeychain

0

混帐配置--global --remove截面凭证WOR ks对我来说