How to uninit git? – Is there any command ‘git uninit’?

Obviously you can uninit git. You can remove git management from a repository by following the procedure below.

uninit git

You can uninit or remove git from a repository by following multiple ways.

1. Deleting git repository

The repository you have initialized git have a .git folder in it. .git folder may remain hidden by default. So, if you cannot find it please enable hidden files to see hidden files.

2. Through Git Command

You can run following command to remove git.

rm -rf .git


rmdir .git

3. Through Windows PowerShell

You can remove git or uninit git through windows PowerShell with this command:

Remove-Item ".git" -Force -Recurse

Please open git or PowerShell command line in the specific repository. Otherwise you will be unable to do the task.