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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-05 00:47:49  来源:igfitidea点击:

How do you remove a Mercurial repository

linuxmercurial

提问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 .hgdirectory? You can also just move it; they are portable, and the setup files inside of .hgcontain no absolute paths that would break if placed elsewhere on the system.

递归删除.hg目录?你也可以移动它;它们是可移植的,并且其中的安装文件不.hg包含放置在系统其他位置时会中断的绝对路径。

From the comments: rm -r .hg

来自评论: rm -r .hg