You are on page 1of 9

Lennu.

net
RSS

Navigate

Blog
Archives
About

EGit Configuration & Creating a Git Repository With Eclipse IDE


Aug 21st, 2012 | Comments

This is the second article of Eclipse IDE Plugins and it is about EGit. It is a plugin which allows
to run Git commands inside Eclipse. You can do all the necessary things with this plugin regarding to the use of Git as a
software developer.
There is a very large website of the things around EGit at their homepage, but I think its too much if you just want to
use to program.
To follow this tutorial you have to have Eclipse installed on your operating system and EGit. If you havent installed
EGit, you can follow my previous tutorial which shows how to install an Eclipse Plugin.

Configuration of EGit

Start Eclipse and go to the Window menu and choose Preferences.

Configuration

Surf in the Preferences menu to Team->Git->Configuration and click Add Entry

Add Entry
Here we add the first entry to the Git configurations. Key: user.email and Value: your own email address. Click OK

when finished.
Click Add Entry again and this time Key: user.name and Value: your own name. Click OK when finished

Configurations Done
Now you have succesfully configured EGit to work. CLick OK to save the configurations.

Creating a Git repository


Next we will create our first Git repository straight from Eclipse by using EGit. You have to have one Eclipse Project
created already. Click right mouse button on the project and select Team->Share Project

Share Project

Here we will select Git.


If you get this error, you can select Do not show again and click OK.

Configure
Choose your project if not selected and click Create.

New Git Repository


You can here choose directory for your repository, but I prefer the default location, since all the user data is also in there.
Also give your repository a name. Click Finish after giving the name.

Conclusion
Here we wee our conclusion what we are going to do. Click Finish to continue.

Done Installation
Now you have succesfully created a Git repository. Right click a project and go to Team and you will see all the
necessary Git functions available. Click on the Commit.

Commit

Here you can make your first commit, just select all the files youd like to commit and click Commit. Now your first
saves are done to the version history.

On the next tutorial I will show how to import a Git project into Eclipse and what are the basic commands you need to
use Git in other ways than just Commit.
Posted by Lennu Aug 21st, 2012 Tutorials
Tweet

Like

Share Sign Up to see what your friends like.

Eclipse IDE Plugin Installation Import Git Project into Eclipse

Comments

WHAT'S THIS?

AROUND THE WEB

Stack

VMWare

Lose Belly Fat With 6


Stand-Up Exercises

Play Our Game to


Win Great Prizes!

ALSO ON LENNU.NET

Ubuntu Command-Line Torrent Clients

Puppet Forge and Cookbook 2 comments

3 comments

Puppet Templates and Parameterized Classes


and Defined Types 1 comment

0 Comments

Developing for Android: PhoneGap versus


Native 6 comments

Lennu.net

Start the discussion

Subscribe

Login

Share Favorite

Sort by Best

Add Disqus to your site

Recent Posts
Web Testing Tutorial Using DalekJS
JavaEE and Tomcat Basic Tutorial in Ubuntu 12.04
Developing for Android: PhoneGap Versus Native
Automate Your Transmission Torrent Clients With Puppet
Ubuntu Command-Line Torrent Clients

Google+
Categories
Cryptography (1)
Django (1)
Java (1)
Javascript (3)
Lennu.net (5)
Linux (11)
Octopress (1)
Puppet (6)

Python (2)
Tutorials (9)

Popular Posts
Puppet Resource Examples
Octopress installation in Ubuntu 12.04 with rsync
Django deployement installation to Ubuntu 12.04 server
Over 37000 student files crawled from a finnish university website
Ubuntu Command-Line Torrent Clients

My Friends' Projects
El Paremmin (Finnish) by Jevgeni Srki
Feel like a tradenomi by Teemu Lehto
Copyright 2014 - Lennu - Powered by Octopress

You might also like