How do I delete a local repository in git? [duplicate]

Question

I can't find the command. I tried Googling "git 'delete a repository'".

Answer

Delete the .git directory in the root-directory of your repository if you only want to delete the git-related information (branches, versions).

If you want to delete everything (git-data, code, etc), just delete the whole directory.

.git directories are hidden by default, so you'll need to be able to view hidden files to delete it.

What is the precise meaning of "ours" and "theirs" in git?

How to download a branch with git?