【问题标题】:How can I clone a mercurial repo including subrepos over http without having to be authenticated for every repo?如何通过 http 克隆一个 mercurial 存储库,包括子存储库,而无需对每个存储库进行身份验证?
【发布时间】:2011-07-02 18:19:58
【问题描述】:

最好只验证一次。

【问题讨论】:

标签: apache http authentication mercurial clone


【解决方案1】:

克隆时可以指定:http://user:pass@url.com/repo/

或者你可以把它放在你的全局.hgrc文件中(注意你的密码是纯文本的)

【讨论】:

  • 不是说.hgrc文件只能用于拉取和推送吗?
  • 您的主目录中的全局 .hgrc 可以指定用户 ID,因为它与存储库中的内容相同,所以我不明白为什么密码也不起作用。 hgbook.red-bean.com/read/a-tour-of-mercurial-the-basics.html搜索“主目录”可以看到全局hgrc
  • 好的,.hgrc 有效。在 Windows 上,主目录通常是 C:\Users\Username。
猜你喜欢
  • 2012-04-04
  • 2010-10-23
  • 2011-05-24
  • 2011-11-16
  • 1970-01-01
  • 2011-06-09
  • 2015-09-19
  • 2022-10-17
  • 2012-08-16
相关资源
最近更新 更多