What is `git update-index --assume-unchanged` versus `--skip-worktree`?
AdvancedConceptHooks, submodules, LFS and signing
Answer
Both make Git ignore local changes to a tracked file. assume-unchanged is a performance hint that Git may undo during pulls; skip-worktree is the right flag for "I keep a local version of this tracked config". They are local only and can cause confusing merge failures, so prefer a template file plus an ignored local copy.
git update-index --skip-worktree config/local.yml
git ls-files -v | grep '^S'
More on Hooks, submodules, LFS and signing
What are Git hooks and where do they live?BeginnerHow do you share hooks with a team, given `.git/hooks` is not committed?IntermediateWhat does the `commit-msg` hook receive and what is it good for?IntermediateWhat do `pre-receive` and `update` hooks do and how do they differ?AdvancedWhat is a Git submodule?BeginnerWhy do submodules confuse people and what are the common pitfalls?Intermediate