How to remove a folder from git and not locally Code Example
how to remove a folder from git and not locally
# Remove folder from git and not local filesystem
git rm -r --cached FolderName
git commit -m "Removed folder from repository"
git push origin master
# After the push, make sure to add the folder to .gitignore for future iterations