exclude txt file in gitignore code example
Example 1: git ignore not saving changes
git rm -rf --cached .
git add .
Example 2: what is add.gitignore
The purpose of gitignore files is to ensure that certain files not tracked by git remain untracked.