I have two repositories. In one, I make changes to file ./hello.test
. I commit the changes and create a patch from that commit with git format-patch -1 HE
FYI: I recently had problems trying to download a patch from Github and applying it to a local file (which was an "override" in a new location).
git am
wouldn't apply the patch either because the file was "not in index" or "dirty." But, I found that the simple patch
command could apply the patch. It did prompt me for the name of the file to be patched.
Got the job done, anyway ...