remove git tracking from folder code example
Example 1: remove git from project
rm -rf .git*
Example 2: remove a folder from git tracking
git rm -r --cached path_to_your_folder/
Example 3: git remove directory from tracking
Remove the folder from your local git tracking, but keep it on your disk.
git rm -r --cached path_to_your_folder/
Example 4: how to remove git repository from a project
rm -rf .git