Skip to main content

Setting user name and email in Mercurial

As I am rather new to the use of Mercurial it took me a bit of time to find an equivalent to Git's

# git config --global .....
# git config --global .....

earlier today. The answer is editing ~/.hgrc like

username = First Last <>

as I learned here eventually. I should have learned it from the Command equivalence table, though. So I have added an entry myself now to speed up whoever runs into that problem next.