gpt4 book ai didi

mercurial - 如何使用 http/ssh 协议(protocol)从克隆存储库推送到远程服务器存储库?

转载 作者:行者123 更新时间:2023-12-04 07:02:03 30 4
gpt4 key购买 nike

我有以下 Windows 配置:

Windows 机器“A”具有 mercurial 存储库。
hg 服务器正在“A”http 上运行

我在 Windows 机器“B”上创建了“A”的克隆
添加并提交我的更改以克隆后,我想将这些更改推送到机器“A”。尝试过 TortoiseHg: synchronize -> Push 选项,但出现以下错误:

pushing to http://praveen@IP Addr:8001/
searching for changes
1 changesets found
ssl required
[command returned code 1]

然后我在机器“A”/.hg/hgrc 文件中做了以下更改
  [web]
push_ssl = False
allow_push = *

我再次尝试从机器“B”进行 hg push,但得到了同样的错误。

谁能解决我的问题。

提前致谢。

普拉文

最佳答案

你所做的在我看来是对的。我能想到两件事可能是错误的。

  • 更改 hgrc 后是否重新启动 A 上的 HTTP 服务器?文件?

  • 2.不知道 hgrc区分大小写,但尝试设置为
    `push_ssl = false`

    因为我一直看到它是这样写的。

    关于mercurial - 如何使用 http/ssh 协议(protocol)从克隆存储库推送到远程服务器存储库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1700239/

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