Cloning a remote repository

We have learned how to start development using a local Git repository and then push changes to a remote repository. Let's now learn how we can get an existing remote Git repository and create a local copy; in other words, we will learn how to clone a remote Git repository. The easiest option is to import the remote Git project. Select File | Import... from the main menu and then Git | Projects from Git | Clone URI.

The wizard will display a page similar to Figure 3.29. Enter the URI of the remote repository, username, and password, and then click Next. Select a remote branch and click Next:

Figure 3.34: Selecting ...

Get Java EE 8 Development with Eclipse now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.