跟着课程做,结果出错了。
git commit -m "5gcar"
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 'Administrator@USER-20211227TF.(none)')
重头新输入命令,结果还是错误
正确输入语法和结果。
错误提示说的很明白了,让你第一次提交之前先设置邮箱和昵称:
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
输入以上两条命令就行了,括号内部分别为邮箱和昵称