Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

Cj Jean
Cj Jean
214 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
214 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.