删除mercurial存储库 - 目录中的某些文件“缺失”

时间:2012-11-07 00:26:44

标签: mercurial undo

我使用以下方法通过终端获取了计算机上Google字体项目中的所有字体:

hg clone someURL;

我想从我的电脑中删除它。我在另一个帖子中看到了以下代码:

rm -r .hg

我不确定.hg指的是什么。 'googlefontdirectory'文件夹中的字体少于20种,即使我可以在各种应用中使用更多的Google字体。我担心只是删除'googlefontdirectory'文件夹将无法摆脱一切,因为大多数字体似乎不存在。删除/删除'hg clone'附带的所有字体的最佳方法是什么?

1 个答案:

答案 0 :(得分:0)

repo中的

所有文件,由hg clone命令克隆到一个目录中,该目录是.hg subdir中的Working Copy和本地存储库。 rm -r .hg无法删除所有克隆数据,只有存储库没有工作副本

  

hg help clone

     

...

     

在新目录中创建现有存储库的副本。

     

如果未指定目标目录名,则默认为   源的基本名称。

添加了repo-clone的结果

  

' googlefontdirectory'中有少于20种字体。夹

真的吗?!

hg clone https://code.google.com/p/googlefontdirectory/
...
added 3056 changesets with 60182 changes to 46816 files (+1 heads)
updating to branch default
27215 files updated, 0 files merged, 0 files removed, 0 files unresolved

dir /S *.ttf
...
Total Files Listed:
            1295 File(s)    201 270 824 bytes
相关问题