Hello everyone!

We have been investing plenty of personal time and energy for many years to share our knowledge with you all. However, we now need your help to keep this blog running. All you have to do is just click one of the adverts on the site, otherwise it will sadly be taken down due to hosting etc. costs. Thank you.

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