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.

  • What is the Mercurial equivalent to `git log --graph --decorate --oneline --all`?
  • Git: how to update the working directory like hg up -C in Mercurial
  • Is it possible to do a partial clone/branch with either bazaar, mercurial or git?
  • After converting repository from hg to git, how to migrate additional changesets?
  • Is there a way in a VCS to have a child branch that only syncs a few specific folders/files from the parent?
  • Use Git “locally” over SSH
  • 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?

      username = Your Name <>

    Thanks for your help.

  • Install git via homebrew on mac osx 10.10 results in: Error: Permission denied - /usr/local/lib/perl5/site_perl/5.18.2
  • Adding Xcode Workspace Schemes to Version Control
  • Mac specific optimizations in ~/.gitconfig
  • git: new blank line at EOF
  • Git clone without .git directory
  • Managing Git branches and subbranches?
  • 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 on the command line.

    Git Baby is a git and github fan, let's start git clone.