Im using GitHub on Windows and after working fine for the whole time, when I opened it today, it says:
Failed to load commit history for this repository. You might need to open a shell and debug the state of this repo.
And then:
Failed to get list of branches.
When I open shell and try git status
or whatever other command, it returns this error :
fatal: bad config file line 1 in .git/config
Not sure what to do with that? I read someone saying to replace the config file with an earlier version of it, but I dont have an earlier version..
I solved this by
I was with Visual Studio Code and facing the same issue. I went to ".git>config" file and cleared that file, saved it.
That fixed the issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With