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

** Please tell me who you are.

Run

  git config --global user.email "[email protected]"
  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环境变量”。

你可能感兴趣的:(QTCreator 使用 commit 时错误:fatal: unable to auto-detect email address)