Git · Junior · Question 15 of 75
What is the difference between git fetch and git pull?
- 1
fetchdownloads one branch;pulldownloads every branch - 2
fetchworks with GitHub;pullworks with any server - ✓Correct answer:
fetchonly downloads;pulldownloads and integrates into your branch
Explanation
git pull is git fetch followed by a merge (or a rebase, if configured). Fetching first lets you inspect incoming commits before changing your branch.