Categories
Article

Change Default GIT Author and Committer in Eclipse GIT Plugin

While working in Eclipse IDE and GIT plug-in for Eclipse, Author and Commiter filed is set by default to PC name and current user as displayed in pic given below.

But in most cases, we want to do commits with our Git user and email id, You can set author and committer while committing. But this requires changing the author and committer every time of commit. To avoid this one can easily change the default author and committer value in the Eclipse GIT plug-in.

To do this just follow these simple steps.

1- Click Window > Preferences > Team > Git > Configuration

2- Click Add Entry and enter the key-value pairs:

Key: user.name
Value: Name

And repeat same for email

Key: user.email
Value: email@email.com

Finally, it will looks like below

3- Click on apply and save and restart Eclipse.

Now default values will be change as given below

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.