开发者

Globally specifying username for all Mercurial repositories?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜