git avoid files from being commited code example Example: git ignore updates to file git update-index --skip-worktree path/to/file.txt