今天在使用git的時候突然提示下面信息:
*** 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 'llll@DESKTOP-J1682P3.(none)')
但是,上面的方法配置的是全局的用戶名和郵箱!就是說如果沒有單獨爲項目配置,那提交的所有項目全部都是這個名字和郵箱!
因此你可以使用下面方式:
git config --local user.email "[email protected]"
git config --loacl user.name "your name"