问题
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://stackoverflow.com/questions/12243619/how-to-delete-my-repository-on-git-using-command-line