when updated gitignore github not remove folders code example
Example: gitignroe remove folder
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