How to apply a git change manually without having to type it or copy/paste it

https://stackoverflow.com/questions/16526321/how-to-apply-a-git-patch-to-a-file-with-a-different-name-and-path