Interview Prep/Git & GitHub/Hooks, submodules, LFS and signing

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'
All Git & GitHub questions Roadmap: Git & GitHub

More on Hooks, submodules, LFS and signing