Intermediate
Git & Version Control
Q65 / 100
What does "git log --follow <file>" do that plain "git log <file>" might not?
Correct! Well done.
Incorrect.
The correct answer is A) It shows the commit history of a file including commits from before the file was renamed or moved, by tracking renames
A
Correct Answer
It shows the commit history of a file including commits from before the file was renamed or moved, by tracking renames
Explanation
Without "--follow", Git's history for a file typically stops at the point it was renamed, since Git doesn't explicitly store rename information — "--follow" attempts to detect renames and continue tracing history through them.
Progress
65/100