新学python课程,git上传库出现错误

问题遇到的现象和发生背景

跟着课程做,结果出错了。

问题相关代码,请勿粘贴截图

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"
输入以上两条命令就行了,括号内部分别为邮箱和昵称