Use this command
git rm --cached <filename>
git rm --cached -r <dir_name>
git commit -m "Removed folder from repository"
git push origin master
This removes the filename from the index, without touching your working tree.
Use this command
git rm --cached <filename>
git rm --cached -r <dir_name>
git commit -m "Removed folder from repository"
git push origin master
This removes the filename from the index, without touching your working tree.