How to delete my repository on Git using command line? [duplicate]
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How to fully delete a git repository created with init? I have a test repository on git and I want to delete it using command line. I found that git rm <file> deleted the files within the repository and not the repository itself. Any one can help here? 回答1: For local repo, run rm -r .git You may not delete a repo remotely to github via command line. 回答2: try rm -r .git from the root of the repository. 来源: https: