When I receive this error, the fix is to:
rm -rf .git
Then, I can git init
again, with a clean initialization, and it works...
Another solution that I found for this is:
- open
.git/config
file - clear all the NULL values in the file
- save and close the file
git add .
#dsmith73 |
---|
Unfortunately, I can't assist you much with Git and PowerShell.
But it does look like your potential issue is identified inside your error message
and, it tells you where to go to figure out how to fix it.