Import Project from Remote Repository to the eclipse

Leave a comment

1. Go to [File] > [Import]


Select project from Git (type “git” in the search field if needed)

{Git} > {Project from Git} > [ Next ]


Click on [Clone URI] and hit [Next]


2. Copy the Cloned URL from remote GIT repository.


3. Paste it in the URI area in eclipse window. (Of course you need the authentication details)


It will get the branch information. Select a branch (or master), click [Next]

Configure the local storage location for the Project.

Screenshot from 2015-04-10 07:50:33

After this step it will take you to the same path that can be followed to import a project from local git repository.

How to commit a file to the remote git repository

Leave a comment

1. Commit it to the local repository

Right Click on the file [Team] > [Commit]

Add the Commit message and Hit [Commit]. (You can so this also by Right Click on the local repository in Git view)

Screenshot from 2015-04-10 07:17:19

2. Go to the local git repository

cd /rezsystem/workspace/demo-parsers

3. Just Push it! (Of course, it will ask the user name and password for the remote repo)

$ git push

Reference :

How to import a GIT project from local Git repositories to the eclipse


Method 1

Go to [File] > [Import]


Select project from Git (type “git” in the search field if needed)

{Git} > {Project from Git} > [ Next ]


Select Existing local repository (There’s an option also to get it directly from the Git repository too)


Select a Git repository

Select a Git repository from the list. (Or you can add an exisiting Git project to the list using the [Add] button and then select from there)


Just click [Next]


Finally [Finish] (as usually šŸ˜‰ ). Here in the screenshot it is not selected to add and Finish is disabled since I have already imported it.


Or You can directly import from the Git perspective by Right Click on the relevantĀ Git Repository and click on [Import Projects..]


How to Add Existing local Git repositories to the eclipse view

Leave a comment

1. Open GIT perspective in eclipse
GoTo [Window] > {Open Perspective} > [Other]


Select [Git] > [OK]

This will take the Git Repositories view with the perspective to the eclipse.

2. Add Existing Git repositories
Click on the [Git and + mark] icon with the tooltip saying “Add Existing local Git repositories to this view”.

Browse the project converted to the Git and hit [OK]

In the big white textArea the .git with yellow icon will be selected (In the screen shot it is not there since the project is already added. Feel a bit lazy to create another and add šŸ˜‰ )

Then it will add the project to the git repo view


If you can see the navigator, it will be also in there with the GIT information in square brackets.


If your project is not yet opened in eclipse…
Check post on How to import a GIT project from local Git repositories to the eclipse

Adding a local project to the GITHUB

Leave a comment

1. Install GIT in Linux

sudo apt-get install git

or Synaptic Package Manager > git.


2. Create a repository in github (eg : CamelInAction)

repo-create to the local project directory. (cd /rezsystem/workspace/CamelInAction)


4. Initialize the local project directory as a Git local repository.

git init


5. Add the git related files in to your new local repository. This stages them for the first commit.

git add .

6. Commit the files that you’ve staged in your local repository. Here, this will commit the tracked changes and prepares them to be pushed to a remote repository.

git commit -m 'First commit'

In this case, you may get a below like warning.

*** Please tell me who you are.


  git config --global ""
  git config --global "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'namal@namal.(none)')

In this case, run the config commands as below.

git config --global ""
git config --global "namalfernandolk"


7. Copy the remote repository URL.(GitHub repository, in the right sidebar)



8. In Terminal, add the URL for the remote repository where your local repository will be pushed.
– Sets the new remote

git remote add origin

– Verifies the new remote URL

git remote -v

9. Push the changes in your local repository to GitHub. Here, it will pushes the changes in your local repository up to the remote repository you specified as the origin.

git push -u origin master

Here,Ā In this stepĀ if you are getting 407 error.(eg : error: The requested URL returned error: 407 while accessing
), add the proxy authentication details as (proxy = http://username:passwd@your-proxy-ip:your-proxy-port) to the git conf file. This will be theĀ /rezsystem/workspace/CamelInAction/.git/conf file orĀ .gitconfigĀ file thatĀ is located in yourĀ $HOMEĀ folder.

Reference :

Ruth's Reflections

Contemplations from quakey quirky Christchurch

TED Blog

The TED Blog shares interesting news about TED, TED Talks video, the TED Prize and more.


Learn and discover simple things

Meihta Dwiguna Saputra's Knowledge Base

~In learning you will teach and in teaching you will (re)learn~

The Java Blog

Thoughts, tips and tricks about the Java programming language


that were shone when I got tempered!