Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

GitHub error "fatal: bad config file line 1 in .git/config" when in git shell

$
0
0

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..


Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>