Xcode弹出git设置

Xcode弹出git提示

*** Please tell me who you are.

Run

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

git config --globaluser.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 'Rabstone@bogon.(none)')

之前一直没这个提示,突然就出现了,自己捣鼓了半天,写下这篇文章,希望给遇到同样问题的小伙伴提供帮助。

共勉


解决方案

1.打开终端

2.进入你的项目

3.输入git

4.设置user.name和user.email

    (1)git config --global user.name "Your Name"

    (2)git config --global user.email "Your email"

5.如果不放心,你可以看一下你设置成功没有

    git config -l

一图顶千字


没毛病吧。。。
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容