I need delete file from file system which is tracked by Git repository and I want leave that file in Git repository unchanged (no commit to repo). It's easy for locally modified file where I'm using assume-unchanged option of update index and it works just fine. I need same behavior for deleted files.
I've tried this with no success:
git update-index --assume-unchanged <file>
- Add file to
.git/info/exclude