当我运行hg Summary --remote
时,输出为
parent: 1:0447a332a9d5 tip
"first commit"
branch: default
commit: (clean)
update: (current)
abort: repository default not found!
有没有办法从命令行指定远程存储库? (而不是在 hgrc 中添加 [default])。我知道 summary
是 incoming
和 outgoing
命令的组合,我可以在命令行上指定远程存储库。但是 summary
命令不接受存储库名称。
最佳答案
使用附加选项
--config CONFIG [+] set/override config option (use 'section.name=value')
用于添加默认路径的运行时参数。因为在 .hgrc 中它是
[paths]
default = URL
您的添加可以是……。就像 --config 'paths.default=URL'
关于mercurial - 在 'hg summary --remote'命令中指定远程存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21129317/