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 http://github.com/foo/bar
$ cd bar
$ git format-path -o .. ${SHA}~1..${SHA}
$ cd ..
$ rm -rf bar
...but without having to clone the entire repository (the repo in the question is large).
Obviously GitHub can display the diff of a given commit via the webinterface, but how I can extract that into a (unified) diff-file (ideally with the commit-message intact)?