Skip to content

TortoiseHG, saving username/password

HG is working very well 😀

On the windows machine I have tortoisehg, which seems to want to ask me for password everytime I do a push. There is a solution where you can put both the password and username in the path, but that feels rather weird to have your password out in the open.

To have the password saved, do:

goto %USERPROFILE%\mercurial.ini (create if missing):



For each repository, edit .hg/hgrc and add [username] to the path, eg. http://[username]

Now for the repo it should ask for password only the first time

Posted in Technology. Tagged with , , .