【发布时间】:2011-04-02 15:03:22
【问题描述】:
我刚刚安装了Hg-Git,我想知道是否可以从同一个存储库推送到 Bitbucket.org 和 Github.com。我正在考虑类似的事情:
$ #make commits
$ hg push #pushes to Bitbucket since it is set as `default` in hgrc
$ hg push "github remote alias" #push to Github
因此,默认情况下它会推送到 Bitbucket,并通过指定“远程”别名来推送到 Github。
【问题讨论】:
-
我没试过。 Hg 有
remote add命令来试试这个吗? -
我有点困惑。您是在问如何使
push命令推送到多个远程目的地?