Differences between revisions 11 and 12
Revision 11 as of 2008-01-05 21:04:36
Size: 1680
Editor: abuehl
Comment:
Revision 12 as of 2008-04-19 20:30:48
Size: 1414
Editor: abuehl
Comment: update to 1.0
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:
'''Note:''' This tutorial assumes you are running a version of Mercurial later than 0.6. In other words, if you have the 0.6 release, the tutorial will not work for you. This tutorial was last updated for Mercurial 0.9.1.
Line 20: Line 18:
basic commands (use "hg help" for the full list or option "-v" for details): basic commands:
Line 25: Line 23:
(...)  commit commit the specified files or all outstanding changes
 (...)

use "hg help" for the full list of commands or "hg -v" for details
Line 27: Line 28:

If this is not the case, there is something wrong with your installation, and you should take a look at InstallTroubleshooting.
Line 34: Line 33:
Mercurial Distributed SCM (version 0.9.1) Mercurial Distributed SCM (version 1.0)
Line 36: Line 35:
Copyright (C) 2005 Matt Mackall <mpm@selenic.com> Copyright (C) 2005-2008 Matt Mackall <mpm@selenic.com> and others
Line 38: Line 37:
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

Tutorial - getting started: installation

Installing Mercurial is straightforward.

  • For Linux, MacOS X, and other Unix variants, follow the UnixInstall directions.

  • On Windows, follow the WindowsInstall instructions.

Once you're done, come back here.

The Mercurial program is named hg. Every Mercurial command starts with hg, followed by the command name, followed by any relevant options and arguments.

Now that Mercurial is installed, we should be able to simply type hg at the prompt, and the program should display some helpful command summaries:

$ hg
Mercurial Distributed SCM

basic commands:

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

use "hg help" for the full list of commands or "hg -v" for details

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

$ hg version
Mercurial Distributed SCM (version 1.0)

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

If all has gone well, let's continue on to TutorialClone.


CategoryTutorial

TutorialInstall (last edited 2011-07-08 14:52:05 by 84)