git rm code example
Example 1: delete git
rm -rf .git
Example 2: git rm cached
$ git rm --cached filename
Example 3: remove git
rm -rf .git
-r => Remove directories and there contents recursively.
-f => Ignore nonexistent files and arguments, never prompt
for more info run
rm --help
Example 4: delete git
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/Leonuch/flex.git
git push -u origin master