您的位置:首页 > 其它

Git 管理项目 遇到的问题

2017-11-11 10:01 337 查看
Git 在commit代码的时候出现错误 意思是有没有设置用户名和邮箱

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree commit -q -F /var/folders/87/wkg82g816sz6s0fp95_z7pnw0000gn/T/SourceTreeTemp.gJtD9g

*** 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 'luweimac_mini@luweiMinideMini.(none)')

Completed with errors, see above

解决办法:

打开终端 进入项目的根目录

cd 把项目拖进来

luweiMinideMini:Meilv1 luweimac_mini$ git config --global user.email "你git上的邮箱地址"

luweiMinideMini:Meilv1 luweimac_mini$ git config --global user.name "你git上的用户名"
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: