Apply and add the patched files to the index

git apply

git apply --index {{path/to/file}}

click the source code to copy install git apply on any operating system with command-not-found.com