Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Git commiter in Netbeans

Tags:

git

netbeans

In Netbeans 7.1 Git support has been added, however, I don't see a way to change commiter information. Currently, it's defaulting to my system information which is not what I want. Is there any way to change this?

like image 768
teamcrisis Avatar asked Jan 10 '12 13:01

teamcrisis


People also ask

How do you commit changes in NetBeans?

In the Projects window, right-click the file you want to commit. [start=2] . In the context menu, choose Git > Commit .

How do I delete a repository in NetBeans?

If you want to delete your project and start over, follow these steps. Start NetBeans. Right-click on the project node and select Delete.


5 Answers

Try setting it in the local gitconfig file .git/config:

[user]
        name = yourname
        email = youremail
like image 135
ThiefMaster Avatar answered Oct 14 '22 13:10

ThiefMaster


You can just edit the default text in the combo boxes and NetBeans will remember it for next time. The data is saved in a git.properties file, for example: C:\Users\USERNAME\.netbeans\7.1.2\config\Preferences\org\netbeans\modules\git.properties).

EDIT:

As per the below comment, it seems that the config file's location changed in NetBeans 8 (I don't use NetBeans for a long time already).

Here's an alternative location according to @tzi: C:\Users\USERNAME\AppData\Roaming\Netbeans\8.0.1\config\Preferences\org\netbean‌​s\modules\git.properties

like image 23
AVIDeveloper Avatar answered Oct 14 '22 13:10

AVIDeveloper


this helped me: https://help.github.com/articles/why-are-my-commits-linked-to-the-wrong-user

Configuring git

To check your git setting, run this command:

git config user.email
# [email protected]

If this email is not correct, you can change the global setting:

git config --global user.email "[email protected]"
like image 45
Andreas Avatar answered Oct 14 '22 12:10

Andreas


it worked in netbeans v7.3.1/windows 7 by adding those entries

name = github user name

email = github registered email

in file

C:\Users\[USER NAME]\AppData\Roaming\NetBeans\7.3.1\config\Preferences\org\netbeans\modules\git.properties

like image 23
Basemm Avatar answered Oct 14 '22 14:10

Basemm


Windows 7 file location:

C:\Users\USERNAME\.gitconfig
like image 41
jezmck Avatar answered Oct 14 '22 12:10

jezmck