Skip navigation.
Home

Mercurial常用命令

在开源的分布式版本控制工具中,Mercurial是比较成功的一个。遇到一些项目使用该SCM工具,学习了一些Mercurial的用法,记录一下。

代理服务器设置

在/etc/mercurial/hgrc, $HOME/.hgrc,或者 .hg/hgrc中增加如下行:
[http_proxy]
host=http-proxy.com:80

Mercurial常用命令

克隆一个软件仓库:
 $ hg clone http://selenic.com/hg/
更新本地软件仓库:
 $ hg pull
 $ hg update
导出一个软件分支(在CVS中是export),在Mercurial中称为归档:
 $ hg archive tag

参考资料

  1. Mercurial official website.
  2. Mercurial和CVS命令对应表.