🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Git Workflow and Interview: all 10 questions

Quiz: Git Workflow and Interview · Question 9 of 10

What is the difference between git fetch and git pull in one line?

What is the difference between git fetch and git pull in one line?

  1. A.fetch only downloads new commits; pull downloads and merges them into your branch
  2. B.fetch uploads; pull downloads
  3. C.They are the same
  4. D.pull only works with tags
Answer & explanation

Correct answer: fetch only downloads new commits; pull downloads and merges them into your branch

fetch is always safe; pull can cause conflicts.

Can you get the rest right without peeking?

Take the timed Quiz: Git Workflow and Interview quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →