# 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.  

%[https://gist.github.com/emmanueltissera/19d0a8852f000cde13768dd7420a0906#file-git-apply-patch-md]
  
Source: [https://stackoverflow.com/questions/6658313/generate-a-git-patch-for-a-specific-commit](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.*

