开发者

Incomplete history of a file in git (git-svn)

How should one go about viewing full开发者_开发技巧 history of a file's content in git?

A file has a very short history in git, repository synced over git-svn, but a long history in svn. The history in git reaches to the point where the file was moved. To view the history I use the following command:

git log PATH_TO_FILE

Am I doing it right? Git is supposed to track content not files, I was imagining it would be good at tracking history of files across renames.


Try

git log --follow PATH_TO_FILE
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜