GAV
GAV

Reputation: 1213

netbeans IDE GIt Command Failed

If I try and do any command under Team -> Git I get the following error

Java.io.IOException: User config file /home/user/.gitconfig invalid org.eclipse.jgit.errors.ConfigInvalidException: Cannot read file /home/user/.gitconfig

the file is there, has my github username and email that's it and I made the permissions 777

I'm using netbeans 8.0 and the excellent ubuntu 14.0.1 desktop Anyone know how to solve it please.

.gitconfig contents is

           name=Gav
           [email protected]




         [user]
            email = [email protected]
            name = Gav

Upvotes: 0

Views: 1673

Answers (1)

VonC
VonC

Reputation: 1323793

It depends on the exact content of the .gitconfig:

  • either it contains some unknown option or typo (as in this thread),
  • or, as in this Netbeans issue, it isn't saved in the right format (for instance, UTF-8 with BOM instead of the normal UTF-8 without BOM).

In the OP's case, the first two lines are incorrect.
It should be only:

     [user]
        email = [email protected]
        name = Gav

Upvotes: 1

Related Questions