I have created a patch which consists of a file name case change:
git mv -f confvars.sh ConfVars.sh
git commit -am 'test filename case change'
git format-patch -M -1 HEAD
but when I then try and apply that patch, I get an error:
git apply 0001-test-filename-case-change.patch
> error: ConfVars.sh: already exists in working directory
How can I apply this patch without it throwing an error?
**EDIT**
To clarify the above example: when applying the patch the file ConfVars.sh doesn't exist, the file confvars.sh does exist which I would expect to be renamed, instead it displays the above error.