Git · Junior · Question 15 of 75

What is the difference between git fetch and git pull?

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.

Further reading

Problem with a question

Git · Junior · question 15

Test yourself

Take the Git · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz