Git apply .gitignore
First commit all your changes
Then remove everything from the index
git rm -r --cached .
Add everything
git add .
Then commit
git commit -m ".gitignore applied"
First commit all your changes
Then remove everything from the index
git rm -r --cached .
Add everything
git add .
Then commit
git commit -m ".gitignore applied"