Reputation: 96997
Is there any way of having mercurial automatically 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?
Upvotes: 3
Views: 89
Reputation: 336478
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.
Upvotes: 6