git remove remote files not local code example
Example 1: remove folder from repo but keep locally
git rm -r --cached File-or-FolderName
git commit -m "Removed folder from repository"
git push origin master
Example 2: git remove vendor folder from remote
git rm -r --cached <some-directory>
git commit -m 'Removed cached/ignored "directory-name" '
git push origin <branch-name>