Skip to content


TortoiseHG, saving username/password

HG is working very well :D

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):

[extensions]

mercurial_keyring=

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

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

Posted in Technology. Tagged with , , .

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

You must be logged in to post a comment.