天蓬老师2017-05-02 09:39:14
The global configuration file of git is often in the c drive (the same applies to other systems). Reinstalling the system may delete the configuration file. If name and email are not configured, git will not work properly.
It is recommended that the subject check whether name and email are configured. Enter under git bash: git config --global --list
Check whether there is the following content:
If not, then this information is missing. Enter under git bash:
git config --global user.name="你的名字"
git config --global user,email="你的邮箱"