设置Git osxkeychain错误 [英] Setting up Git osxkeychain error

查看:78
本文介绍了设置Git osxkeychain错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设置Git,并且正在关注 http: //lifehacker.com/5983680/how-the-heck-do-i-use-github 以及Git提供的常规教程.

I'm setting up Git and I am following http://lifehacker.com/5983680/how-the-heck-do-i-use-github along with the regular tutorial Git provides.

我的问题是我不需要每次都输入密码,因此我正在按照本教程进行操作,当我到达输入git config —global credential.helper osxkeychain命令的步骤时,就会收到错误消息

My problem is I don't want to have to type in my password each time so I am following this tutorial and when I arrive at the step where you input the git config —global credential.helper osxkeychain command, I get the error

error: key does not contain a section: —global. 

如果我 ls ,它会在当前目录中显示git-credential-osxkeychain,但是我不确定此错误是什么意思以及如何解决它...非常感谢您的帮助. /p>

If I ls it, it shows the git-credential-osxkeychain in my current directory but I'm not sure what this error means and how to fix it... Any help is much appreciated.

推荐答案

您可能输入了""(长划线),而不是预期的双连字符

You probably typed '' (the long dash) instead of the expected double hyphen

 git config --global credential.helper osxkeychain 

请注意在global前面的'--',而不是''

Note the '--' in front of global, instead of ''

lifehacker博客帖子用''错误地替换了<--'.

The lifehacker blog posts incrrectly replace the '--' by ''.

这篇关于设置Git osxkeychain错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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