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.
精彩评论