Remove folder and all files inside it in Terminal
https://www.lukeko.com/11/remove-folder-and-all-files-inside-it-in-terminal 0using rm
can be very dangerous if you're not careful -- get in the habit of using mv
instead
do this
mv .git ~/.Trash
instead of
rm -rf .git
the first command is safer on many levels