Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

does anybody know, where is located something like main config of git?

I use netbeans and when I installed git, it created identity from my username and hostname (stellaireman ). In my home folder wasn't .gitconfig untill I set my new identity, so it created that file. And in that file is just this

[user]
    name = David Střítežský
    email = myemail@gmail.com

So I think that somewhere must be some "parent" of this config, where is that stellaireman identity saved (or it is saved somewhere in netbenas?).

I tried git config --global --unset user.name "stellaireman" with no success.

My second identity works great but I don't want 2 indentities there. I've made a mistake 3 times yet.

share|improve this question
    
Did you check in your ~/.bashrc? –  i08in Mar 7 at 13:14
    
@Jobin I'm not sure what should be there but there is nothing like "stellaireman" or "notebook-ubuntu" –  StellaireMan Mar 7 at 13:21
    
You might have found something like your name and email id in that file, since you did not, it wasn't there. –  i08in Mar 7 at 13:23

1 Answer 1

up vote 0 down vote accepted

Git configuration for NetBeans should be found in:

~/.netbeans/<your_netbeans_version>/config/Preferences/org/netbeans/modules/git.properties

How to find it:

Try searching in all the NetBeans configuration files.

First you can check your project's configuration in /path/to/your/project/nbproject

$ cd /path/to/yout/project/nbproject
$ grep -r -o -i "stellaireman" *

If you found nothing, then you can next check the NetBeans main config directory.

$ cd ~/.netbeans/7.4/config
$ grep -r -o -i "stellaireman" *

Of course you need to replace 7.4 by the verison you are using version.

share|improve this answer
    
Thanks man, that solved it! :) –  StellaireMan Mar 7 at 15:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.