Sunday, January 30, 2011

GitHub Tip: download commits as patches

Some time ago, the brilliant GitHub people gave me the following tip. Rajarshi is lazy, and might find it interesting. By appending .patch to the commit URL, a commit can easily be downloaded as patch. For example, Dmitry made this commit in his branch, having the URL The patch for this commit can then be downloaded at this URL

That way, developers can easily download it with wget and apply it locally with git am, without having the fetch the full repository.