Development Tools

Cj Jean
Cj Jean
165 Points

Git problem: "fatal: bad config line 1 in file /Users/username/.gitconfig"

Git displays :

fatal: bad config line 1 in file /Users/user/.gitconfig

In the /Users/user/.gitconfig file it has:

This is Git's per-user configuration file. [user] name = cj email = nnn@gmail.com [core] editor = nano

I added the core editor nano to the gitconfig and still have the fatal error.

The error shows after every command including after: running git config --global --list after git config --global user.email email

1 Answer

Cj Jean
Cj Jean
165 Points

Ok - It is fixed now. I removed the first line that explained what the file was. I had not seen that as a solution in any stackoverflow answer. But I tried it and it worked.