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:
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: