why would you ignore files git code example
Example 1: git ignore not saving changes
git rm -rf --cached .
git add .
Example 2: gitignore a specific file
$ echo debug.log >> .gitignore $ git rm --cached debug.log rm 'debug.log' $ git commit -m "Start ignoring debug.log"