开发者

Globally specifying username for all Mercurial repositories?

开发者 https://www.devze.com 2022-12-28 10:04 出处:网络
Is there any way of having mercurial automatical开发者_运维百科ly create hgrc, so that I don\'t have to create it every time I create a repository?

Is there any way of having mercurial automatical开发者_运维百科ly create hgrc, so that I don't have to create it every time I create a repository? I'd like hgrc to at least contain the following:

[ui]
username = geo

Can this be done?


You can set the username in mercurial.ini or .hgrc in your Home directory and it will automatically be used for all repositories where it's not overridden by a local hgrc.

In TortoiseHg, this can be set using right-click and choosing TortoiseHg/Global Settings....

See the docs.

0

精彩评论

暂无评论...
验证码 换一张
取 消