The file was probably renamed copied in its last commit. Try git log --follow -- path/to/file
git log shows only the most recent revision of a file
-
05-10-2022 - |
Question
In order to compare two revisions of a file in a project, I did a git log /path/to/file
which only returns the last commit.
When executing git blame /path/to/file
I got the trace of each line with the correct sha, dates, and authors.
So the commits are stored but somehow git log
doesn't show them.
Any idea on how to fix this?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow