In this quick tutorial, we'll show how to set default author and committer in Eclipse since it's very time consuming to type it on every commit. You can set these parameters through Eclipse preferences and also through Git configuration. We'll explain both ways here.

Set default author and committer in Eclipse

What you need to do is to go to Window > Preferences > Team > Git > Configuration.

set default author and committer in Eclipse

You'll notice that there are three tabs - Repository settings, User settings, and System settings and that you're able to enter key-value pairs in the User settings tab. Click Add Entry in User settings and enter the following key-value pairs:

Key: user.name
Value: YourUsername

Key: user.email
Value: YourEmail

Click on one of your projects to refresh the author and committer in Git Staging window and you'll see that now you have new name and email there.

Set default author and committer through Git config

If you don't want to do this through Eclipse, it's also possible to configure it directly through the console by changing Git settings:

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