Снимите папку из репо, но держите локально
git rm -r --cached File-or-FolderName
git commit -m "Removed folder from repository"
git push origin master
The Rambling Lank
git rm -r --cached File-or-FolderName
git commit -m "Removed folder from repository"
git push origin master
# for single file
git rm --cached myfile
# for directory file
git rm --cached --r myfile
git rm --cached `git ls-files -i -X .gitignore`