Bad git config file .git/config

In my git repositiory, whenever I do any git commands like git status or git log, I get the error: fatal: bad config file line 1 in .git/config How do I rebuild that file or a new one?