how to ignore new changes to file in git code example Example: git ignore updates to file git update-index --skip-worktree path/to/file.txt