Today I present a simple tip. Recently I wrote about how I handle pull requests on GitHub. When people send me a pull request of additions/fixes for a project I prefer to add
.patch to the end of URLs for those pull requests and feed the output into the
git am command.
Earlier I was looking at a pull request that contained only a single commit I wanted to use. GitHub provides URLs to individual commits, so I thought, “Can I add
.patch to the end of those URLs? I don’t remember reading anywhere that you can do that, but maybe…,” and sure enough it works. Terrific!