Generate a git patch for a specific commit

I seem to be coming back to this set of directives whenever I need to apply a patch. Thought I'd keep it somewhere handy.

Source: (first answer)

This article was originally written on Google's Blogger platform and ported to Hashnode on 17 Sep 2022.