View the change history of a file using Git versioning

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

    To show what revision and author last modified each line of a file:

    git blame filename
    

    or if you want to use the powerful blame GUI:

    git gui blame filename
    

提交回复
热议问题