These directions extend the Using Git from the Terminal or Git-Bash directions, and they provide the very basics to clone your repository into an Eclipse project. Replace your credentials with these when completing this tutorial: user name is
newuser, with some password, and the remote repository is
After completing these steps, play around with the Git Repository perspective to familiarize yourself with it. In addition, make some changes to your files and commit them after each change, then view your remote repository.
This section assumes you have the Eclipse IDE installed on your system. If you are using your own computer, follow these instructions if you have not installed EGit into Eclipse yet.
Eclipse uses EGit to access remote repositories.
Open Eclipse Marketplace from the "Help" menu.
Select Help > Eclipse Marketplace and search for EGit, then install EGit.
Search for EGit, then install EGit and JGit.
After installing EGit, open the Preferences pane and navigate to Team > Git. Set your default repository folder.
Setting your default repository folder.
Cloning from your remote repository allows you to push and pull changes to and from it.
Choose File > Import.
Choose Git > Projects From Git.
Select "URI" for your repository source.
Enter your remote repository information.
Choose the "master" branch.
Make sure the directory is set correctly.
Choose "Import" as a General Project.
Ensure the Project Name is set correctly and click "Finish".
Select Window > Open Perspective > Other.
Choose "Git Repository".
You should now have cloned your remote repository.
Your Git Repository after cloning.
Select Window > Open Perspective >
<your perspective>. I opened the Java EE perspective to write a Java program, for example.
Choose the folder to create the new file in > New > File.
Create a file named Homework2.java and fill in with text.
Now that you have made a change by adding a new file, we can commit the change and push it to the remote repository.
Right-clicking folder > Show In > History is an easy way to get to the Git functions.
Drag the file(s) to Staged Changes, add a message, then "Commit and Push".
A confirmation message pops up.
If you followed the steps correctly, you will see this in New User's repository view.