设置Git Identity时出错

时间:2013-06-16 06:47:51

标签: github

Github全新。我下载了OSX的Git(10.7.5)并打开了终端。

我进入了

git config --global user.name "John Doe"

并以

返回
-bash: $: command not found

我做错了什么?

2 个答案:

答案 0 :(得分:2)

如果您已下载“GitHub for Mac”应用,则需要打开命令行。

请参阅“Using git from the command line after installing Github for Mac”:

您实际上可以从GitHub for Mac应用程序本身请求安装命令行!

install

答案 1 :(得分:0)

Git很可能未在您的计算机上正确安装。请按照本指南再次安装git。

http://git-scm.com/book/en/Getting-Started-Installing-Git

相关问题