首页 > 代码库 > EGit

EGit

Every commit in EGit will include the user’s name and his email-address. These attributes can be set in the Preferences-window Window => Preferences.

Navigate to Team => Git => Configuration

and hit the New Entry… Button.

Enter user.name as Key and your name as Value and confirm. Repeat this procedure with user.email and your email address and click OK in the Preferences window.

The username and email should be the same you use for your Git account, ie. your GitHub account.

 

 

Creating Local Repositories

One major advantage of Git compared to SVN or CVS is that you can easily create local repositories, even before you share them with other people. In this way, you can version your work locally.

First, you have to create a project in Eclipse that you want to share via your local repository.

For later purposes it would be useful to add some files, e.g. a Java class to your project.

EGit