Git · Junior · Question 66 of 75

What does git diff main feature compare?

Explanation

It shows how to turn one snapshot into the other. git diff main...feature (three dots) shows only what feature changed since it branched off, which is what a pull request displays.

Further reading

Problem with a question

Git · Junior · question 66

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