You've created a git repository with git init but now you want to remove it from application folder.


Initialise repository and check status


inanzzz@inanzzz:~/project$ git init
Initialised empty Git repository in /var/www/html/local/test/.git/
inanzzz@inanzzz:~/project$ git status
On branch master

Initial commit

nothing to commit (create/copy files and use "git add" to track)

Remove repository and check status


inanzzz@inanzzz:~/project$ rm -rf .git
inanzzz@inanzzz:~/project$ git status
fatal: Not a git repository (or any of the parent directories): .git