I have files tracked in git, I want to ignore changes to some of them.
"git update-index --skip-worktree" and "git update-index --assume-unchanged" don't meet my demands. If there are changes on remote, "git pull" would raise conflicts.
I would like a way which "git pull" goes with no conflicts (If a file is changed both in local repository and upstream, using either local or remote version is OK for me).
Another problem for "--skip-worktree" and "--assume-unchanged" is that, if I delete the file, It shows no change.
I want to ignore changes, but adding or deleting should not be ignored.
I have learned that "Git Hook" can do customizable behaviors.
But I'm not sure if "Git Hook" can do the job. And the document is not straightforward enough for me to know how to accomplish my demands.
So I'm asking a question here.