remove a folder from git add code example
Example 1: remove a folder from git tracking
git rm -r --cached path_to_your_folder/
Example 2: git remove folder remotely
git rm -r --cached <folder>
git commit -m "Removed Folder"
git push origin master