Exclua a pasta .git
rm -rf .git
Courageous Curlew
rm -rf .git
git rm -r --cached <folder>
git commit -m "Removed Folder"
git push origin master
git rm -r folder-name
git commit -m "Remove unwanteed folder"
git push
git rm -r my-folder