简体   繁体   English

Windows版GitHub-如何删除本地计算机上的存储库?

[英]GitHub for Windows - How to delete a repo on my local computer?

I cloned a repo, now I want to delete the clone on my local computer and clone it again in a different place on the same drive. 我克隆了一个存储库,现在我想删除本地计算机上的克隆,然后再次克隆到同一驱动器的另一个位置。 When I select the remote repo and click Clone it says: "This repository has already been added." 当我选择远程仓库并单击“克隆”时,它说:“此存储库已被添加。”

I manually deleted the folder containing the original repo on my local computer and this problem still happens. 我在本地计算机上手动删除了包含原始存储库的文件夹,但此问题仍然发生。

Git hub store the metadata it manage so it think that you have a repository. Git Hub存储它管理的元数据,因此认为您有一个存储库。

Open the Program, delete the reference to the project and clone again. 打开程序,删除对项目的引用,然后再次克隆。

Another option is to open a git-bash and clone the project from the gitbash. 另一个选择是打开git-bash并从gitbash克隆项目。

Github desktop version 3.X added the delete option. Github桌面版本3.X添加了delete选项。 IF your software is older simply upgrade it. 如果您的软件较旧,则只需对其进行升级。

Select the branch that you want to delete, go to Branch | 选择要删除的分支,请转到“ Branch |“删除”。 Delete Branch

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM