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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
If your VPS has Mercurial installed, simply:
hg push ssh://username@host/path/relative/to/home
or add to the repo's hgrc
[paths]
default-push = ssh://username@host/path/relative/to/home
and just
hg push