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: https://stackoverflow.com/questions/6658313/generate-a-git-patch-for-a-specific-commit (first answer)


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