推送到远程Mercurial存储库
问题描述:
我在远程 VPS 上有一个Mercurial存储库. VPS已启用SSH访问.在将代码更改从开发机推送到远程VPS方面,我有哪些选择?
I have a Mercurial repository on a remote VPS. The VPS has SSH access enabled. What are my options for pushing code changes from my development machine to the remote VPS?
答
如果您的VPS已安装Mercurial,只需:
If your VPS has Mercurial installed, simply:
hg push ssh://username@host/path/relative/to/home
或添加到存储库的hgrc
or add to the repo's hgrc
[paths]
default-push = ssh://username@host/path/relative/to/home
还有
hg push