Version Control · Flashcard

What is the difference between git fetch and git pull?

  • AFetch only downloads changes; pull downloads and integrates them into your branch
  • BFetch downloads and integrates changes; pull only downloads them for later review
  • CFetch works on tags only, while pull works exclusively on branch commits instead
  • DFetch requires a clean working tree, while pull can run with local edits present

Why this is the answer

Fetch downloads without touching your branch; pull additionally merges/rebases. The reversal is wrong, both handle branches/tags, and cleanliness isn’t the distinction.

Official docs
Study in Gnoseed →