View the change history of a file using Git versioning

后端 未结 24 2046
臣服心动
臣服心动 2020-11-22 16:40

How can I view the change history of an individual file in Git, complete details with what has changed?

I have got as far as:

git log -- [filename]
         


        
24条回答
  •  北恋
    北恋 (楼主)
    2020-11-22 17:29

    If you use TortoiseGit you should be able to right click on the file and do TortoiseGit --> Show Log. In the window that pops up, make sure:

    • 'Show Whole Project' option is not checked.

    • 'All Branches' option is checked.

提交回复
热议问题