Can GitHub show the history of changes made to one file in patch form?

后端 未结 4 1645
别那么骄傲
别那么骄傲 2020-12-22 18:52

If you do git log --patch -- path/to/file, you will get the history of the file along with a diff of all the changes made to it with each commit, like this:

4条回答
  •  [愿得一人]
    2020-12-22 19:28

    If you're on Linux, Then install TIG as:

    sudo apt-get install tig

    and then,

    tig path/to/file/

    It'll show you all the commits and their respective changes

    Talat Parwez

提交回复
热议问题