git update-index --assume-unchanged [<file> ...] ## To undo and start tracking again (if you forgot what files were untracked): git update-index --no-assume-unchanged [<file> ...]
git update-index --skip-worktree path/to/file.txt