문제

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?

도움이 되었습니까?

해결책

The file was probably renamed copied in its last commit. Try git log --follow -- path/to/file

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top