Linux 如何删除 Mercurial 存储库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4502297/
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
How do you remove a Mercurial repository
提问by Jon Cox
I accidently put a Mercurial repository in the wrong place. How do I remove it? This is in Linux.
我不小心将 Mercurial 存储库放在了错误的位置。如何删除它?这是在 Linux 中。
采纳答案by Brandon Rhodes
Recursively remove the .hg
directory? You can also just move it; they are portable, and the setup files inside of .hg
contain no absolute paths that would break if placed elsewhere on the system.
递归删除.hg
目录?你也可以移动它;它们是可移植的,并且其中的安装文件不.hg
包含放置在系统其他位置时会中断的绝对路径。
From the comments: rm -r .hg
来自评论: rm -r .hg