如果你的VPS上已经安装了Mercurial,那么只需要执行以下操作:hg push ssh://username@host/path/relative/to/home 或者添加到存储库的hgrc。[paths] default-push = ssh://username@host/path/relative/to/home 只是hg push
/run/media/$DEVICE_LABEL
而不是用户的主目录呢? - alexzander