$ ./guess_the_languageGit
Git · medium · #30

What does this command print?

git show HEAD~2:src/app.js
  1. src/app.js as it was two commits ago
  2. The diff of src/app.js in HEAD~2
  3. The log of src/app.js since HEAD~2
  4. src/app.js from the second parent
The <rev>:<path> syntax names a blob, so git show prints the file's full content at that commit.
Play Git ▸