← 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?
- A.fetch only downloads new commits; pull downloads and merges them into your branch
- B.fetch uploads; pull downloads
- C.They are the same
- 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 →