How to download a single commit-diff from GitHub?

后端 未结 2 432
忘掉有多难
忘掉有多难 2020-12-12 12:46

I would like to get a single commit (let\'s call it ${SHA}) from GitHub via the web-interface.

For example, something like:

$ git clone          


        
2条回答
  •  天涯浪人
    2020-12-12 12:58

    I found I had to add a / at the end, i.e.

    https://github.com/foo/bar/commit/${SHA}.patch/
    

提交回复
热议问题