gitignore doesn't delete files from repo code example
Example: gitignore doesnt delte remote files
git rm -r --cached some-directory
git commit -m 'Remove the now ignored directory "some-directory"'
git push origin master
git rm -r --cached some-directory
git commit -m 'Remove the now ignored directory "some-directory"'
git push origin master