How to change Git Default Author and Committer details in Eclipse


Before you can commit anything to the Git repository you need to set the user.name and user.email configurations.

If you do not set it by yourself, git does it for you, example on the Mac device it will set the Author and Committer as the device name as default, for example: code2care <code2care@localhost>

If you want to change these values using Eclipse IDE, follow the below steps,

  1. Open Eclipse,
  2. Go to Settings (Preferences..)
  3. Now Go to Version Control (Team) -> Git -> Configuration
  4. Under User Settings tab, click on Add Entry and add two keys with your values,

    Git Configuration Eclipse
    After setting git user details in Eclipse
    Example:
    user.name = chrism
    user.email = something@example.com
  5. Click Apply and Close.

As you can see in the below screenshot, the user details have changed.

Eclipse Commit Author and Committer config after change

Note: It is always better to set the user details at the git config --global level via the command line.

$ git config --global user.name user
$ git config --global user.email email

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap