Display correct name in a teamwork

Since your computer’s username and domain are not always associate with your GitHub settings, you may experience unrecognized committer problem while working with a team. It’s not a critical problem in most cases, but annoying. Here is how you can customize your name in an Eclipse environment with GitHub.

Default @author

Add -Duser.name=Firstname Lastname at the bottom of eclipse.ini file, which can be found in the Eclipse directory.

Default Author & Committer

Go to Eclipse menu -> Preferences -> Team -> Git -> Configuration. Open configuration and add:

[user]
name = Firstname Lastname
email = Your email address

Or, you can add entries:

user.name = Firstname Lastname
user.email = Your email address

If your email address matches the email address you registered on GitHub, it can be recognized.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s