How can I generate a diff for a single file between two branches in github

前端 未结 5 1825
有刺的猬
有刺的猬 2021-01-30 00:30

I need to generate a diff for a single file that will show the differences between two versions, which are actually tags in github. I then want to send this diff to someone via

5条回答
  •  星月不相逢
    2021-01-30 01:08

    Here is my workaround when the following issue applies.

    This comparison is big! We’re only showing the most recent 250 commits

    Copy the raw view of the file that you want to compare to https://gist.github.com/. Use the two specific commit points that you want to compare. Start with the older commit.

    https://gist.github.com/ has a nice side-by-side diff view when you click 'Revisions'.

提交回复
热议问题