git rm -r --cached File-or-FolderName git commit -m "Removed folder from repository" git push origin master
git rm --cached file_to_remove.txt