When I merge changes from a remote repository which deletes a file, the local copy will be unlinked (if it doesn't have any changes).
How can I teach git to simply leave them on disk?
EDITED:
I can un-cache the deleted files before merging, thus
git diff --name-only -z --diff-filter=D ..origin/master | \
xargs -0 git rm --cached && \
git commit -m 'un-cache deleted files'
git merge origin/master
so that's not the problem. My users are (as usual ;-) ).
Thus: Is it possible to do this without the additional commit? Is it possible to block a merge which deletes a file?