Save remote repository url? Follow
How can I save the remote repository url when using Mercurial? Every time I push changes I have to re-enter the url which is really annoying. It's easier to just set the path in the hgrc file and do it from the console. Any ideas? Am I doing something wrong?
Please sign in to leave a comment.
It works as expected if the project is cloned from the remote repository initially, but not when trying to start from existing code and push to a new repo.
A little reading goes a long way. In Mercurial, the clone command automatically adds a default path to a repo's hgrc file. Push/Pull Changeset commands do not. So for these existing projects, I need to manually add the default path to the hgrc file and the problem is solved.
Thanks a lot for pointing this out! This definitely can be useful for others.