Clone

  1. Clone a remote repository
  2. Getting a local copy of a remote branch

Clone a remote repository

  • Go to the Git perspective
  • Click on Clone Clone a Git Repository
    Clone Repository
  • Click on the Local File button and select the HelloWorld-7 location where you extracted the workspace.zip
    Repository Path

    Note
    If the URI, is correctly formatted, EGit will automatically detect the other parameters.

  • Click on Next
  • On the next page, select all the branches
    Branches Selection

    Note
    For the moment, you will be able to work locally only on the branches you selected.

  • Click on Next
  • On the last page, select Import all existing projects after clone finishes and click on Finish
    Finalize Clone
  • You can now see the HelloWorld-7 project in the Explorer and the repository Git Repositories.
    In the Remotes folder, you can see the Origin remote.
    Result

Getting a local copy of a remote branch

  • In the Git Repositories in the Branches folder, expand the Remote Tracking click on origin/feature_A > Create Branch Create Branch...
    New Branch
  • The Create Branch is pre-filled with all the needed information. Click on Finish
    Create Branch
  • The branch is now available for local work