How do I change the default author and committer in the Eclipse Git plugin?

EclipseGitEclipse PluginEgitAuthor

Eclipse Problem Overview


I am using the Git plugin for Eclipse. I have several authors and committers which are displayed when I start typing in those fields.

How can I provide changes to this list, or remove some author or committer?

Also I want to set my default author and committer which will be displayed by default.

Enter image description here

Eclipse Solutions


Solution 1 - Eclipse

  1. Click Window > Preferences > Team > Git > Configuration
  2. Click Add Entry and enter the key value pairs:
  • Key: user.name

  • Value: YourUsernameHere

    And

    • Key: user.email
    • Value: YourEmailHere

Solution 2 - Eclipse

Each developer should perform:

git config --global user.name "<name of user>"
git config --global user.email "<email of user>"

If you want to change the author of an existing commit, look here

Solution 3 - Eclipse

Changing Your Committer Name & Email Globally

You can run the "git config" command with the --global flag; this will make sure all of your future commits use the given information:

$ git config --global user.name "John Doe"
$ git config --global user.email "[email protected]"

Changing Your Committer Name & Email per Repository

If you want to use special settings only when working in a certain repository, you can simply omit the --global flag. This makes the configuration valid only in that repository:

$ git config user.name "John Doe"
$ git config user.email "[email protected]"

Git Cheatsheet: git for dummies

Solution 4 - Eclipse

EGit should ask you the first time you commit something. But you can always change it later on, see here: http://wiki.eclipse.org/EGit/User_Guide#Identifying_yourself

Solution 5 - Eclipse

In Eclipse v4.4 (Luna) it will work like the below way.

Enter image description here

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionDmytro DanylykView Question on Stackoverflow
Solution 1 - EclipseGuillermo GarciaView Answer on Stackoverflow
Solution 2 - EclipseGoZonerView Answer on Stackoverflow
Solution 3 - EclipseGorvGoylView Answer on Stackoverflow
Solution 4 - EclipserobinstView Answer on Stackoverflow
Solution 5 - EclipseKrutik JayswalView Answer on Stackoverflow