'Github fatal: bad config line 3 in file /home/dru7/.gitconfig
I do not understand why I cannot configure .gitconfig in Debian shell.
Look at the screen attached.
I have tried to add correct username and email based on GitHub registration, but the shell keeps returning:
fatal: bad config line 3 in file /home/dru7/.gitconfig
I have deleted the hashes in config file and still the same.
What am I doing wrong? Why is not working?
Solution 1:[1]
If depends on what is in /home/dru7/.gitconfig, but I would check:
- the error persists on
git config --global -l - if removing / simplifying the content of the file helps
As long as git config --global -l returns an error, keep removing lines around line 3, until you get to the one which was the culprit.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | VonC |

