Skip to main content

How can I push changes to a different remote repository?

24 Sep 2013 - mercurial

First, add the path to the remote repository to .hg/hgrc.

[paths]
remote-name = http://path/to/remote-name

Then, push the changes in your local repository to the remote repository:

hg push remote-name

If your changes belong to new branches, use the following command:

hg push --new-branch remote-name

References