leave out a file in gitignore code example Example: git ignore not saving changes git rm -rf --cached . git add .