Git,删除存储库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9197608/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Git, deleting repository
提问by newbie
I somewhat screwd up the file system of my remote node. I am doing a project and the remote repo was initialized by my instructor. I cloned it and then pushed the updates from my home directory.
我有点搞砸了我的远程节点的文件系统。我正在做一个项目,远程仓库是由我的导师初始化的。我克隆了它,然后从我的主目录推送更新。
I now want to delete the repo which I cloned in the remote server. I want to start it over.
我现在想删除我在远程服务器中克隆的存储库。我想重新开始。
How do I delete the repository which was cloned before?
如何删除之前克隆的存储库?
回答by wRAR
A repository is just a directory with working copy (though it is optional) and .git
, so deleting the directory deletes the repository. To delete a remote repository you need to have access to the remote filesystem.
存储库只是一个带有工作副本的目录(尽管它是可选的)和.git
,因此删除目录会删除存储库。要删除远程存储库,您需要有权访问远程文件系统。
回答by groovekiller
By the way, You can remove your .git
顺便说一句,你可以删除你的 .git
rm -rf .git
rm -rf .git
Alternative to killing TortioseGit:
Open the TortoiseGit-Settings (right click to any folder, TortoiseGit → Settings)
Go to the Icon Overlays option.
Change the Status Cache from Default to None
Now you can delete the directory (either with Windows Explorer or rmdir /S /Q
)
Set back the Status Cache from None to Default and you should be fine again...
杀死 TortioseGit 的替代方法:
打开 TortoiseGit 设置(右键单击任何文件夹,TortoiseGit → 设置)
转到图标叠加选项。
将状态缓存从默认更改为无
现在您可以删除目录(使用 Windows 资源管理器或rmdir /S /Q
)
将状态缓存从无设置为默认,您应该又好了...
If Your're using gitHub:
如果您使用的是 gitHub:
回答by cpp
- Click the repository in your GitHub account
- Click "Settings" in the bottom right corner
- Click "Delete the repository" at the bottom.
- 单击您的 GitHub 帐户中的存储库
- 点击右下角的“设置”
- 单击底部的“删除存储库”。
回答by Paul Nikonowicz
Log in to the remote server and do a file system delete.
登录到远程服务器并执行文件系统删除。