How to set the default push/pull repository from T

2019-06-20 04:18发布

For one of my repositories, it doesn't remember the name of the repository I am pulling and pushing to. I don't have this problem with any of the other repositories on my machine. Is their any way to fix this?

2条回答
ゆ 、 Hurt°
2楼-- · 2019-06-20 04:47

As of version 3.0 there is no "setting" for choosing the default URL. Instead you must create an alias of "default" for the URL that you want.

To do so, from workbench, right click on the repository and select settings. Click Edit File and add a line (see below) that specifies the default path to the desired repository.

default = URL of repository
查看更多
爷的心禁止访问
3楼-- · 2019-06-20 05:01

In the .hg folder for the repository with a problem, create or edit hgrc and add:

[paths]
default = path\to\default\push

or from TortoiseHg (1.1.6 for me), go to the Synchronize dialog and click Configure (or just go directly to repository settings and the Synchronize item) and add an alias of "default" with the correct path for your default push/pull repository.

查看更多
登录 后发表回答