cd ~/Projects/YOURPROJECT rm -rf .git // After running this command, the project will no longer be a Git repository. If you list the files in the directory, you won't see the .git folder anymore: ls -a
Then, you can remove the directory by:
cd .. // check the directory ls //remove directory rm -rf YOURPROJECT // recheck the directory ls