本文介绍了推送到远程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

这篇关于推送到远程Mercurial存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 01:42