GitHub error "fatal: bad config file line 1 in .git/config" when in git shell
I solved this by
- open .git/config file
- clear all the NULL values in the file
- save and close the file
- git add .
My question might have been abit vague, but I wasnt sure myself what happened. I solved it by finding .git/config file on my laptop using Windows search , and deleting it. Then I deleted content of my github folder and cloned the repo again and it worked after :)