教程 - 开始:安装

安装 ["Mercurial"] 是简单的。

你完成后回到这里。

注: 本教程假定你正在运行 ["Mercurial"] 0.6 以上版本。换句话说,如果你有 0.6 版的,本教程不适用。本教程是为 ["Mercurial"] 0.7 进行了升级。

["Mercurial"] 程序命名为 hg。每一个 ["Mercurial"] 命令以 hg 开头,后面跟命令名,然后是选项和参数。

目前 ["Mercurial"] 已经安装,我们应该可以在命令行上简单键入 hg,程序应该显示一些有用的命令汇总:

$ hg
Mercurial Distributed SCM

basic commands (use "hg help" for the full list or option "-v" for details):

 add        add the specified files on the next commit
 annotate   show changeset information per file line
 clone      make a copy of an existing repository
(...)

If this is not the case, there is something wrong with your installation, and you should take a look at InstallTroubleshooting.

To determine what version of Mercurial we are running, let's type:

$ hg version
Mercurial Distributed SCM (version 0.7)

Copyright (C) 2005 Matt Mackall <mpm@selenic.com>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

如果所有都运行地很好,让我们继续进入 ChineseTutorialClone