您的位置:首页 > 编程语言

使用github出现的问题

2016-03-31 15:39 239 查看

使用github出现的问题

*** Please tell me who you are.

Run

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'pengbingxiang@localhost.(none)')
localhost:photoCarousel pengbingxiang$ git config --global user.email "184114105@qq.com"


出现这个问题应该是本地库没有创建或者说是内容没有导入造成。

1方法;首次创建项目时勾选git

2打开终端,把该项目地址输入进去 cd 文件地址(可以通过直接托转文件夹来搞定)

3 ls -a查看目录下的文件。看是否有带.git的文件目录

4如果有,ls -l -a 应该能发现带.git的文件。

5 git init

6 git add .

7 git commit -m “Initial commit’

8 终端会报错让你说如身份,就如图中run 下面的内容一样。

9 git config user.email “这个是邮箱”

10 git config user.name “你的名字”

11 git add

12 git commit -m ‘Initial commit’然后就会刷的一下在终端导入一大堆东西。

13 恭喜你,把xcode重启就OK

另外终端输入: 输入命令:git –version。查看当前git版本。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  git github