QuestenaUn entraînement qui indique quoi revoir ensuite
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 treeBonne réponse
  3. Uploads your local commits to origin
  4. Switches your working tree to the state of origin's default branch

Explication

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`.

Continuer avec ce test

Commencer l’entraînement
Question 7: Under a normal remote configuration, what does `git fetch… · Git Fundamentals · Questena