I would like to get one 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-patch -o .. ${SHA}~1..${SHA} $ cd .. $ rm -rf bar
... but without the need to clone the entire repository (the repository in question is large).
Obviously, GitHub can display the diff of a given commit via the web interface, but how can I extract it into a (merged) diff file (ideally, with a constant commit message)?
github diff git-diff patch
umläute Feb 20 '14 at 9:40 2014-02-20 09:40
source share