Clean repo with respect to .gitignore file:
git rm -r --cached .
git add .
git commit -m "Clean with respect to .gitignore"
Configure a global .gitignore file:
git config --global core.excludesfile ~/.gitignore_global
Clean repo with respect to .gitignore file:
git rm -r --cached .
git add .
git commit -m "Clean with respect to .gitignore"
Configure a global .gitignore file:
git config --global core.excludesfile ~/.gitignore_global