Basic remote workflow

  • Remove all projects to clean your workspace
  • Only if you are connected to a RapsberryPi


    Otherwise if you are using Github or thelocal version

    Clone the HelloWorld-8.git remote repository (into the workspace folder)
  • Add the line:
    System.out.println("Hello EclipseCon!");
    to the Main.java file
  • Commit this change
    Commit
  • Go to the History view. It should look like this:
    History 1
  • Click on HelloWorld-8 > Team > Fetch Fetch from Upstream.
    A pop-up window will appear listing all remote changes
    Fetch

    Note
    The Fetch Fetch ... item allows more fetch options but for a simple fetch the Fetch Fetch from Upstream item is sufficient.

  • The History view should now look like this:
    History 2
    The local and remote master branches have diverged
  • Click on HelloWorld-8 > Team > Pull Pull to incorporate the remote changes in your local branch. A pop-up window will appear listing all remote changes
    Pull

    Note
    You can bypass the fetch action, it is always executed before a pull.

  • Click on HelloWorld-8 > Team > Push Push to Upstream. A pop-up window will appear detailing what has been uploaded.
    Push

    Warning
    You can only push a branch when it is ahead of its remote counterpart.
    To be sure of this, you should pull before pushing

    Note
    The Push Push ... item allows more push options but for a simple fetch the Push Push to Upstream item is sufficient.

Note
The exercise uses a single branch, however all the actions detailed earlier to uses several branches will also work in remote workflows.