Git - fatal: bad config line xx in file .git/config

0 votes
426 views
added May 10, 2019 in Git by LC Marshal Captain (25,790 points)

your project directory > .git > config (remove it, or rename it as config.bak in case you need it)

1 Response

0 votes
responded May 10, 2019 by LC Marshal Captain (25,790 points)

Another workaround, git clone the same project to a different folder. eg

git clone https://[email protected]/myproject/myproject.git myproject-2

go to myproject-2/.git/config (copy) 

go to myproject/.git/config (paste)

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...