Remove folder from a git repository
git rm -r --cached folderpath
Remove folder from a git repository
git rm -r --cached folderpath