设置Git身份时出错 [英] Error when setting up Git Identity

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

问题描述

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



我输入了

  git config --global user.nameJohn Doe

并已返回

  -bash:$:命令未找到

我做错了什么?

解决方案

如果您已下载 a href =http://mac.github.com/ =nofollow noreferrer> GitHub for Mac 应用程序,那么你需要打开一个命令行。



请参阅安装Github for Mac后在命令行中使用git



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


Completely new to Github. I downloaded Git of OSX (10.7.5) and opened the terminal.

I entered

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

and was returned with

-bash: $: command not found

What am I doing wrong?

解决方案

If you have downloaded the "GitHub for Mac" app, then you need to open a command-line.

See "Using git from the command line after installing Github for Mac":

You can actually ask for the installation of the command-line from the GitHub for Mac app itself!

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

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