how to ignore a file while committing in git code example Example: git ignore not saving changes git rm -rf --cached . git add .