git remove and delete directory code example
Example 1: git remove from folder
rm -rf .git
Example 2: remove directory from git without deleting
#for directory
git rm --cached -r myfile
rm -rf .git
#for directory
git rm --cached -r myfile