QTCreator 使用 commit 时错误:fatal: unable to auto-detect email address

** 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 'tim@newton.(none)')

解决办法是:

设置:工具-》选项-》版本控制-》GIT-》取消选择“设置HOME环境变量”。


版权声明:本文为suirosu原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。