update gitignore file from visual studio 2019 code example Example: git ignore updates to file git update-index --skip-worktree path/to/file.txt