QuestenaPractice that shows what to review next
Question 7

Under a normal remote configuration, what does `git fetch origin` do?

  1. Downloads new commits from origin and immediately merges them into your currently checked-out branch
  2. Updates your remote-tracking branches from origin without changing your local branches or working treeCorrect answer
  3. Uploads your local commits to origin
  4. Switches your working tree to the state of origin's default branch

Explanation

Fetch is the download-only half of synchronization: it retrieves new objects and updates remote-tracking refs such as origin/main, leaving your own branches and working files exactly as they were. The tempting distractor is the one about downloading and merging — that is what `git pull` does, not `git fetch`.

Continue with this test

Start practice
Question 7: Under a normal remote configuration, what does `git fetch… · Git Fundamentals · Questena