how to remove git directory in terminal

Shell
rm -rf .gitgit 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
Source

Also in Shell: