Push to remote Mercurial repository

2019-03-15 18:43发布

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条回答
祖国的老花朵
2楼-- · 2019-03-15 19:12

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
查看更多
登录 后发表回答