How to delete my repository on Git using command line? [duplicate]

别来无恙 提交于 2020-02-19 09:13:31

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!