我尝试添加'credential-osxkeychain‘,我遵循了these steps,但它没有正确安装。我不再想要它了。我怎样才能阻止git调用它(当我做pull的时候)?谢谢!
git pull
git: 'credential-osxkeychain' is not a git command. See 'git --help'.
Username for 'https://github.com': jzone3
Password for 'https://jzone3@github.com':
git: 'credential-osxkeychain' is not a git command. See 'git --help'.发布于 2012-08-01 23:58:04
我最终从配置文件中删除了osxkeychain。
git config --global --edit发布于 2013-02-13 13:25:50
似乎MacPorts打包了密钥链助手,这可能就是为什么它不能作为一个公认的命令出现在你的面前。
您可以按照以下说明直接安装helper:
电子邮件: Magnus Johansson @ http://insomniacgeek.com/how-to-add-your-git-password-in-the-mac-osx-keychain/
为了避免每次执行git操作时都输入基于git的密码,下面是如何将git密码存储在Mac OSX密钥链中的方法:
检查是否已经安装了credential-osxkeychain helper:
git凭据-osxkeychain
如果没有,请下载并安装:
curl http://github-media-downloads.s3.amazonaws.com/osx/git-credential-osxkeychain -o git-credential-osxkeychain sudo mv git-credential-osxkeychain /usr/local/bin sudo chmod u+x /usr/local/bin/git-credential osxkeychain
并让git使用helper:
git配置--全局credential.helper osxkeychain
发布于 2017-10-31 04:18:19
全局git配置--
--remove-section
https://stackoverflow.com/questions/11745504
复制相似问题