Untrack files already added to git repository based on .gitignore

1. git rm -r --cached .

2. git add .

3. git commit -m ".gitignore fix"

Comments