Can not delete an GitHub repository

為{幸葍}努か 提交于 2019-12-01 08:04:38

问题


I have a git hub repository called "Name" (Without the quote). When I try to delete it:

git remote remove Name

It returns me this:

error: Could not remove config section 'remote.Name'

I even check the GitHub website to make sure it exists. It sure does, I don't know why I can't delete this. Thanks


回答1:


A git remote is essentially a pointer to another repository. Removing the remote removes the pointer but does not delete the remote repository.

The git command line tool does not have the ability to delete github repositories. If you would like to do that you will have to delete it through the github web UI. See here for step by step instructions on how to do so.




回答2:


I don't think you can delete a github repository using git CLI. In github web interface go to repository settings, there you should find "delete this repository" option under danger zone section, use that option to delete the repository permanently.



来源:https://stackoverflow.com/questions/33973877/can-not-delete-an-github-repository

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