🌐
GitHub
github.com › maxkratz › How-to-Eclipse-with-Github
GitHub - maxkratz/How-to-Eclipse-with-Github: A tutorial on how to use Eclipse with GitHub. · GitHub
You have to link your Eclipse projects with your GitHub repository to push data to GitHub. Right click on your project Team/Share Project.... Select your repository and click Finish. Click on your repository (in the repository-view).
Starred by 47 users
Forked by 18 users
🌐
Medium
medium.com › @AlexanderObregon › getting-started-with-version-control-in-eclipse-ide-git-and-github-integration-a0cca7b15126
Getting Started with Version Control in Eclipse IDE: Git and GitHub Integration
April 26, 2024 - In Eclipse, right-click on your project in the Project Explorer and select “Team” > “Share Project.” ... If your project is not already in a Git repository, follow the prompts to create a new one.
Discussions

git - How do I set up Eclipse/EGit with GitHub? - Stack Overflow
I've never used Git before and would like to learn. I have a private repository with GitHub. I've installed the EGit plugin for Eclipse. I have a workspace where I do my work, generally: ~/Docum... More on stackoverflow.com
🌐 stackoverflow.com
Importing a GitHub project into Eclipse - Stack Overflow
I've imported a GitHub project ... project in my Eclipse project workspace? Do I need to set the GitHub working directory(c:\users) to my Eclipse working directory(c:\Projects) prior to checking out the project ? ... My working directory is now c:\users\projectname\.git So then I try to import the project using the eclipse "import" option. When I try to import selecting the option "Use the new projects wizard" the source code is not imported, ... More on stackoverflow.com
🌐 stackoverflow.com
How do I use github with eclipse to collaborate with other programmers?
Please ensure that: Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions You include any and all error messages in full - best also formatted as code block You ask clear questions You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions. If any of the above points is not met, your post can and will be removed without further warning. Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png ) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc. Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit. Code blocks look like this: public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } } You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above. If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures. To potential helpers Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
🌐 r/learnjava
10
3
November 16, 2023
java - how run application from github in eclipse - Stack Overflow
I had downloaded this application https://github.com/a66as/mbrp from GitHub and when I try to run the GUIController.java as java application there is an error and no GUI pop up here are the error More on stackoverflow.com
🌐 stackoverflow.com
🌐
SWTestAcademy
swtestacademy.com › home › introduction to github with eclipse
Introduction to GitHub with Eclipse
May 2, 2021 - After Eclipse restarts you are ready to import the project down from Github: File-> Import-> Git->Projects From Git-> Next-> Clone URI ... Follow the screen prompts to your configuration and press Finish!
🌐
Uzh
geo.uzh.ch › microsite › reproducible_research › post › rr-eclipse-git
How to use Git with Eclipse | Reproducible Research Workshop
August 18, 2016 - Thu, Aug 18, 2016 reproducible research, git, github, eclipse, egit · This tutorial in the context of the Reproducible Research Workshop provides you with the first steps on how to use Git with the Eclipse IDE. Eclipse is heavily used to program in Java, as well as in other languages like C++, and even Python (via PyDev).
🌐
Usf-cs212-2020
usf-cs212-2020.github.io › guides › eclipse › importing-eclipse-projects-from-github.html
Importing Eclipse Projects from Github
You can right-click the repository to access several git actions, including the “Pull” action which you will need to keep this local repository (on your system) synchronized with your remote repository (on Github). You only need to add this repository once, even if there are multiple Eclipse projects within that repository.
🌐
Eclipse Che
eclipsesource.com › blogs › 2012 › 08 › 28 › tips-and-tricks-using-eclipse-with-github
Tips and Tricks: Using Eclipse with GitHub
GitHub makes it very easy to share repositories both publicly and privately, however using it within Eclipse still requires a number of setup steps (install the plugins, configure & clone the repositories, setup the Mylyn queries, etc…). Yoxos ...
🌐
Medium
medium.com › @zandra.harner › step-by-step-guide-to-use-github-with-eclipse-1ce4f3c193f1
Step-by-step Guide to Use GitHub with Eclipse | by Alexandra Z Harner | Medium
September 11, 2020 - Step-by-step Guide to Use GitHub with Eclipse In this article, (1) In Eclipse IDE, create a dynamic web project “CourseProject”. (2) Right-click the project, click “Team”, click “Share …
🌐
Cornell Computer Science
cs.cornell.edu › courses › cs2110 › 2019su › handouts › github.pdf pdf
OOP and Data Structures Instructions for setting up github CS2110 Summer 2019
the same git url (https://github.com/.../2110projects.git), and their own username and password. 2. On the next screen, be sure to click “Import all existing Eclipse projects after clone finishes.” The
Find elsewhere
🌐
Super User
superuser.com › questions › 1405436 › remote-repository-from-github-to-eclipse
git - Remote repository from GitHub to Eclipse - Super User
If you want general code, you'll need to clone it into the folder manually. In a terminal, navigate to the folder with your project in it where you want the code, and run git clone [url], replacing [url] with the url of the remote repository.
Top answer
1 of 8
110

As mentioned in Alain Beauvois's answer, and now (Q4 2013) better explained in

  • Eclipse for GitHub
  • EGit 3.x manual (section "Starting from existing Git Repositories")
  • Eclipse with GitHub
  • EGit tutorial

Copy the URL from GitHub and select in Eclipse from the menu the

File → Import → Git → Projects from Git


If the Git repo isn't cloned yet:

In> order to checkout a remote project, you will have to clone its repository first.
Open the Eclipse Import wizard (e.g. File => Import), select Git => Projects from Git and click Next.
Select “URI” and click Next.
Now you will have to enter the repository’s location and connection data. Entering the URI will automatically fill some fields. Complete any other required fields and hit Next. If you use GitHub, you can copy the URI from the web page.

Select all branches you wish to clone and hit Next again.

Hit the Clone… button to open another wizard for cloning Git repositories.


Original answer (July 2011)

First, if your "Working Directory" is C:\Users, that is odd, since it would mean you have cloned the GitHub repo directly within C:\Users (i.e. you have a .git directory in C:\Users)

Usually, you would clone a GitHub repo in "any directory of your choice\theGitHubRepoName".

As described in the EGit user Manual page:

In any case (unless you create a "bare" Repository, but that's not discussed here), the new Repository is essentially a folder on the local hard disk which contains the "working directory" and the metadata folder.
The metadata folder is a dedicated child folder named ".git" and often referred to as ".git-folder". It contains the actual repository (i.e. the Commits, the References, the logs and such).

The metadata folder is totally transparent to the Git client, while the working directory is used to expose the currently checked out Repository content as files for tools and editors.

Typically, if these files are to be used in Eclipse, they must be imported into the Eclipse workspace in one way or another. In order to do so, the easiest way would be to check in .project files from which the "Import Existing Projects" wizard can create the projects easily. Thus in most cases, the structure of a Repository containing Eclipse projects would look similar to something like this:

See also the Using EGit with Github section.


My working directory is now c:\users\projectname\.git

You should have the content of that repo checked out in c:\users\projectname (in other words, you should have more than just the .git).

So then I try to import the project using the eclipse "import" option.
When I try to import selecting the option "Use the new projects wizard", the source code is not imported.

That is normal.

If I import selecting the option "Import as general project" the source code is imported but the created project created by Eclipse is not a java project.

Again normal.

When selecting the option "Use the new projects wizard" and creating a new java project using the wizard should'nt the code be automatically imported ?

No, that would only create an empty project.
If that project is created in c:\users\projectname, you can then declare the eisting source directory in that project.
Since it is defined in the same working directory than the Git repo, that project should then appear as "versioned".

You could also use the "Import existing project" option, if your GitHub repo had versioned the .project and .classpath file, but that may not be the case here.

2 of 8
22

With the last ADT, you can import Github project using Eclipse :

  1. File -> Import -> Git -> Projects From Git > URI

  2. Enter the Github repository url

  3. Select the branch

🌐
Reddit
reddit.com › r/learnjava › how do i use github with eclipse to collaborate with other programmers?
r/learnjava on Reddit: How do I use github with eclipse to collaborate with other programmers?
November 16, 2023 -

A couple of classmate and I will be working on a project for the end of the term together. One classmate created a repository for the project and we would like to collaborate over github. He created a repository and we were both able to pull the project into eclipse. How do we make it so that we can all make changes to the source code repository using eclipse? What kind of documentation do I need to read to figure this out? The idea is to push updates to the repository so that we can all see any changes made.

Edit: Just wanted to provide the resources I read to learn git in case anyone else having the same problem stumbles upon my post. Hope it helps.

I used these two resources from github:

  1. https://github.com/git-guides

  2. https://training.github.com/downloads/github-git-cheat-sheet/

🌐
Vogella
vogella.com › tutorials › EclipseGit › article.html
Eclipse Git Tutorial
May 31, 2026 - Eclipse fills out the fields based on the URL in the clipboard. Enter your user and password to be able to push to GitHub. Alternatively, you can use an SSH key. You can configure your SSH key in Eclipse via Window Preferences General Network Connection SSH2.
🌐
Stack Overflow
stackoverflow.com › questions › 59012824 › how-run-application-from-github-in-eclipse
java - how run application from github in eclipse - Stack Overflow
In the target platform (Window > Preferences: Plug-in Development > Target Platform) the plug-in/bundle org.eclipse.emf.ecore of version 2.14 or higher is missing; this error prevents the project pk.nu.mbrp.ranker to be built
🌐
o7planning
o7planning.org › 13083 › bring-an-eclipse-project-to-github-as-an-repository
Bring an Eclipse project to GitHub as an Repository | o7planning.org
Then on Eclipse, right click on your project and select: Team > Share Project... > Git ... Then click "Create Repository". As a result, your project folder turns into a "Local Repository". What you need to do next is link "Local Repository" to "GitHub Repository".
🌐
Chief Delphi
chiefdelphi.com › technical › programming
How to use github with eclipse. - Programming - Chief Delphi
January 22, 2015 - We have been trying to use github with eclipse and have been totally failing. Does anyone know step by step instructions for getting started with github and eclipse? I keep finding partial instructions or old instruction…
🌐
Wordpress
ssodelta.wordpress.com › 2014 › 05 › 06 › how-to-connect-eclipse-to-github
How to connect Eclipse to GitHub - SSOΔ - WordPress.com
July 11, 2014 - Now just click Next and let Eclipse do its thing. First create an account on GitHub. Then if you go to your profile, you should see something like: Then click on Repositories and click the green New button: Then name your repository and etc. But make sure to check the box that says Initialize this repository with a README as such: If you don’t do this step, you’ll need to run a command from command-line, so it’s easier to get GitHub to do it for us.
🌐
Quora
quora.com › How-do-you-import-a-GitHub-project-in-Eclipse
How to import a GitHub project in Eclipse - Quora
Answer: How to pull Maven projects from GitHub into Eclipse 1. Copy the GitHub URL of the repository to the clipboard. 2. Open Eclipse and choose Import –> Projects from Git (with smart import) 3. Choose the Clone URI option in the Git import wizard and click Next.
🌐
DZone
dzone.com › testing, deployment, and maintenance › deployment › tutorial: git with eclipse
Tutorial: Git with Eclipse
October 5, 2018 - If you want to make changes to a GitHub repository, clone it on GitHub to your own list of repository and use your repository URL. ... Press next and select the desired branch (if any).