GitHub error "fatal: bad config file line 1 in .git / config" when in git shell
I'm using GitHub on Windows and after working fully for the entire time I opened it today, it says:
Failed to load commit history for this repository. You may need to open a shell and debug the state of this repo.
And then:
Failed to get the list of branches.
When I open a shell and try to execute git status
or any other command, it returns this error:
fatal: invalid config file line 1 in .git / config
Not sure what to do about it? I read what someone said to replace the config file with an earlier version, but I don't have an earlier version.
+3
source to share