I can not use any git commands, all of them lead to the following error:
fatal: unknown error occurred while reading the configuration files
Git worked fine until it replaced the hard drive. I created a Windows 10 system image and restored it to my new hard drive, and then merged the unallocated disk space into my main partition.
I tried reinstalling and installing git, restarting my computer and deleting .gitconfig files and almost any combination of these actions.
source
share