View the change history of a file using Git versioning

后端 未结 24 2003
臣服心动
臣服心动 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:30

    In Sourcetree UI (https://www.sourcetreeapp.com/), you can find history of a file by selecting 'Log Selected' option in right click context menu:

    It would show the history of all the commits.

提交回复
热议问题