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
精彩评论