git rm --cached <folder_name>
Then go to the parent directory and do:
git add .
git commit -m "<your_message>"
git push --all
git rm --cached <folder_name>
Then go to the parent directory and do:
git add .
git commit -m "<your_message>"
git push --all