I want to ignore a file/directory tree that was previously tracked - ignore it forever but have it not being deleted on a pull - just have it ignored o
I had kind of the same problem, I used git rm --cached
and it worked locally but once I made a push to the remote server it deleted also the files, and I did not want that.Then I found git update-index --assume-unchanged
and it ignores the local changes and does not delete it from the remote server, worked like a charm!