Git · Junior · Question 63 of 75
What does git log -p file.js show?
- 1Only the single commit that created the file
- ✓Correct answer: The file's history with each commit's diff
- 3The path of the file in each of the branches
Explanation
-p adds patches to the log. Add --follow to keep tracking the file across renames.