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 |
---|
thank you! thats what i needed