Reputation: 11
I am trying to set up my username and email address on Mercurial. The tutorial says:
Mercurial will need a username to use for recording commits. It's best to configure Mercurial to use your email address by creating a file .hgrc in your home directory (or on Windows in %USERPROFILE%\Mercurial.ini) containing lines like the following:
[ui] username = John Doe <[email protected]>"
I found the "Mercurial" notepad file in the folder, not an ".ini" and The only thing that is written in that file is "# Generated by TortoiseHg settings dialog"
I did check other related questions and tried to find the answer. But, I really couldn't find. I want to use my bitbucket username and another email address on my commits. I am very new to coding and using version control systems. So, I hope I was able to explain the issue clearly.
Upvotes: 1
Views: 892
Reputation: 1161
Is your Windows set to hide extensions for known file types? That would explain why you don't see .ini
in Windows Explorer.
If you open it in Notepad, it should say "mercurial.ini - Notepad" in the title bar of Notepad if it's the correct file.
However, there you can do this through TortoiseHg. Open TortoiseHg Workbench, go to File -> Settings. In the Settings dialog, under the "User's global settings" tab, select "Commit" in the left-hand list, and you'll see User name appear at the top of the pane to the right of the list. Type in your email address there and click OK. That should be it.
(But you could now check the file we discussed earlier and see if it has the relevant bits added to it)
Upvotes: 4