gpt4 book ai didi

mercurial - 在 hg 中为 URL 命名?

转载 作者:行者123 更新时间:2023-12-04 05:57:50 25 4
gpt4 key购买 nike

我已经使用 Git 有一段时间了,我习惯于将远程添加到我的存储库中,因此我可以从具有特定名称的 URL 中推送和拉取。是否可以在 hg 中做同样的事情?每次我想推送时,我都厌倦了输入完整的 URL。

最佳答案

These 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).



http://www.selenic.com/mercurial/hg.1.html#url-paths

还有 SchemesExtension如果您在特定站点(例如 Bitbucket)上使用各种存储库做了大量工作。

关于mercurial - 在 hg 中为 URL 命名?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9304788/

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