I just installed Hg-Git and I was wondering if it is possible to push to both Bitbucket.org and Github.com from the same repository. I’m thinking of something like:
$ #make commits
$ hg push #pushes to Bitbucket since it is set as `default` in hgrc
$ hg push "github remote alias" #push to Github
So, by default it pushes to Bitbucket, and to push to Github by specifying a “remote” alias.
If your question is how to make
hg pushable to push to multiple remote destinations, one by default and one named, then that’s easy.You edit the
.hg\hgrcfile in your repository and add/modify:The above is my setting for one of my projects. By default, ie. just
hg pushit pushes to CodePlex, but I can also ask it to push to kiln by executinghg push kiln.The one named
defaultis basically the one used if you don’t specify the alias for a remote destinations, and you can have 0 or more named ones in addition todefault.If that was not your question, please elaborate.