gpt4 book ai didi

hgrc 中的 Mercurial 路径

转载 作者:行者123 更新时间:2023-12-03 21:20:26 25 4
gpt4 key购买 nike

我需要知道是否可以在我的 hgrc 文件中添加如下内容:

[paths]
default = http://somehost.com/repos/
live = ssh://user@host.com//home/user/public_html

我在 http://www.selenic.com/mercurial/hgrc.5.html#paths 中阅读了一些关于此的信息
但我的问题是我不知道如何使用它。
我的猜测是它应该是这样的:
hg pull @live

也许我缺少一些文档。

谢谢

最佳答案

来自 hg help urls :

URLs can all be stored in your configuration file with path aliases under the [paths] section like so:

  [paths]
alias1 = URL1
alias2 = URL2
...

You can then use the alias for any command that uses a URL (for example hg pull alias1 will be treated as hg pull URL1).

Two path aliases are special because they are used as defaults when you do not provide the URL to a command:

  1. default
  2. default-push

关于hgrc 中的 Mercurial 路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5220001/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com