开发者

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

开发者 https://www.devze.com 2023-02-05 14:33 出处:网络
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

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

精彩评论

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