remove a folder from git tracking code example
Example 1: remove a folder from git tracking
git rm -r --cached path_to_your_folder/
Example 2: how to remove git from a folder
rm -rf .git
git rm -r --cached path_to_your_folder/
rm -rf .git