In this tutorial, we will learn how to remove a git repository which is created by using the git init command.
We can remove a git repository by deleting the .git folder because git keeps all information inside that folder.
Here is an example:
- In your terminal navigate to git repository you need to remove.
- Now, run the following command to delete the .git folder.
rm -rf .git