gpt4 book ai didi

mercurial - 我怎样才能获得 'hg pull' 来尊重我的 .hgrc 中的受信任用户部分?

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

我正在与用户共享 Mercurial 存储库 dias ,我会相信我的生活和数据。因此我补充说

[trusted]
users = dias, nr

到我的 ~/.hgrc文件。但是,当我使用 hg pull -v 从远程存储库中提取时,我总是收到这条消息:
remote: Not trusting file /r/c--/papers/gentileset-popl2010/.hg/hgrc from untrusted user dias, group c--
remote: Not trusting file /r/c--/papers/gentileset-popl2010/.hg/hgrc from untrusted user dias, group c--

(我不知道为什么该消息出现两次。)

我如何向 Mercurial 解释我真的想信任这个文件?

最佳答案

信任没有建立在远程机器上,您本地的 .hgrc 只影响本地机器上的用户。将 trust 部分行放在远程 .hgrc 中(在远程存储库所在机器上的主目录中)。当然,这假设您使用的是“ssh://”远程 URL。如果您使用“http://” URL 来访问存储库,那么远程计算机上的 apache(或 wwwuser 或其他)用户的 .hgrc 需要断言信任。

关于mercurial - 我怎样才能获得 'hg pull' 来尊重我的 .hgrc 中的受信任用户部分?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1089988/

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