使用github出现的问题

使用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版本。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值