Mercurial “no username supplied” error on Mac
I’ve just installed Mercurial on my OSX Mountain Lion Max (10.8) and on my first commit I’m getting the error:
abort: no username supplied (see "hg help config")
I’ve seen a load of answers which suggest I need to create or copy a file form a certain location and paste it into another location and add my username and email to the document.
If that is the right thing to do:
- Where is the file I need to copy (or what is the file called that I need to create)
- Where do I put that file
Do I just need to add the following two lines to the file?
[ui] username = Your Name <firstname.lastname@example.org>
Thanks for your help.
One Solution collect form web for “Mercurial “no username supplied” error on Mac”
That file is named
.hgrc and it is located in your home directory. If you just append those lines to
~/.hgrc and everything should be fine.
An extremely detailed overview of the Mercurial configuration file is located here.
Another less convient way is to pass
-u email@example.com on the command line.