标签:-- error style only comm mini git repos efi
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上的用户名"
标签:-- error style only comm mini git repos efi
原文地址:http://www.cnblogs.com/liaolijun/p/7818316.html