Differences between revisions 20 and 21
Revision 20 as of 2009-11-22 15:21:25
Size: 1908
Editor: abuehl
Comment: Reverting back to English version. Please create a new page for the translation
Revision 21 as of 2010-10-06 06:36:55
Size: 1884
Editor: mpm
Comment:
Deletions are marked like this. Additions are marked like this.
Line 42: Line 42:
By default Mercurial uses a username of the form `user@localhost` for [[Commit|commits]].
This is often meaningless. It's best to configure a proper email address in `~/.hgrc`<<FootNote(http://www.selenic.com/mercurial/hgrc.5.html)>>
(or on Windows in `%USERPROFILE%\Mercurial.ini`, MercurialIni) by adding lines such as the following:
Mercurial will need a username to use for recordinging commits. It's best to configure Mercurial to use your email address by creating a new `~/.hgrc`<<FootNote(http://www.selenic.com/mercurial/hgrc.5.html)>> file
(or on Windows in `%USERPROFILE%\Mercurial.ini`, MercurialIni) containing lines like the following:

Tutorial - Getting started: installation

(This page is part 1 of 9 of the Tutorial series. Next part is TutorialClone)

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.4)

Copyright (C) 2005-2009 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.

Mercurial will need a username to use for recordinging commits. It's best to configure Mercurial to use your email address by creating a new ~/.hgrc1 file (or on Windows in %USERPROFILE%\Mercurial.ini, MercurialIni) containing lines like the following:

[ui]
username = John Doe <john@example.com>

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


CategoryTutorial

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