简体   繁体   English

如何撤消/还原git clone --mirror命令?

[英]How to undo/revert git clone --mirror command?

I want to revert/undo the following command: 我想还原/撤消以下命令:

git clone --mirror <mygitrepository>

I was testing something and it didn't work as expected so I now want to do undo this command. 我正在测试某些东西,但没有按预期工作,因此我现在想撤消此命令。 I can see that extra files and folders have been pulled down into my local directory which I don't want. 我可以看到多余的文件和文件夹已被拉到我不需要的本地目录中。

I haven't committed anything, I've just run the above command. 我什么都没做,我只运行了上面的命令。

How do I undo this? 我该如何撤消呢?

I've worked out it doesn't matter. 我已经解决了,没关系。 I could in theory just clone from the repository again and delete the existing directory on my local. 从理论上讲,我可以再次从存储库克隆并删除本地的现有目录。

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

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