1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Git

Exercise

Fetching from a remote

If you are not sure how the contents of a remote repo compare to your local repo, then you can gather the remote contents from a specific branch and then compare them to your local branch.

Your colleague John has set up a remote repo so that his work is backed up in the cloud and accessible to others.

Instructions 1/3

undefined XP
  • 1
    • Run a command to find out the name(s) of remote repos linked to your project.
  • 2
    • Gather contents from the remote origin repo into your local main branch.
  • 3
    • Compare the remote repo with your local main branch.