Git · Junior · Question 49 of 75

Which command shows the changes introduced by a single commit?

Explanation

git show prints the commit's metadata and its diff against the parent. It also works with tags and files at a given commit, such as git show HEAD:package.json.

Further reading

Problem with a question

Git · Junior · question 49

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