gpt4 book ai didi

Mercurial "default-push not found!"?

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

我在我的 Windows 7 机器上安装了 Mercurial。我知道这一点是因为当我输入 hg --version 我得到:

Mercurial Distributed SCM (version 2.5.2)
(see http://mercurial.selenic.com for more information)

Copyright (C) 2005-2012 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

我刚刚通过 hg commit -m "Made some changes." 将一些代码提交到本地仓库。

然后我输入 hg push 并得到:

pushing to default-push
abort: repository default-push not found!

我的 C:\Users\myuser\.hg\hgrc 文件如下所示:

[trusted]
users = myuser

这是怎么回事?

最佳答案

您需要配置您的默认路径。为此,您可以在 .hg\hgrc 文件中加入如下部分:

[paths]
default = http://somewhere/to/push/to

默认 路径将同时用于hg pushhg pull。如果您想为 hg push 使用不同的路径,您还可以配置一个 default-push 路径。参见 hg help paths寻求更多帮助。

关于 Mercurial "default-push not found!"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26509157/

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