How do I view previous diff commits using Git?

后端 未结 3 934
执念已碎
执念已碎 2021-01-31 01:38

How do I view previous diff commits using Git?

I have a file that I\'ve made several commits on, but I want to view previous versions of the file AND its diff\'s at diff

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-31 02:21

    git log --full-diff -p your_file_path
    

    Check out:
    http://git-scm.com/docs/git-log

提交回复
热议问题