Differences between revisions 19 and 20
Revision 19 as of 2009-11-22 14:56:25
Size: 2078
Editor: Tovim
Comment:
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
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
== Tutoriál - Začínáme - instalací programu == == Tutorial - Getting started: installation ==
Line 3: Line 3:
''(Toto je první stránka z devíti v řadě [[Tutorial]]. Pokračováním je [[TutorialClone]])'' ''(This page is part 1 of 9 of the [[Tutorial]] series. Next part is [[TutorialClone]])''
Line 5: Line 5:
Instalace Mercurialu je jednoduchá. Installing Mercurial is straightforward.
Line 7: Line 7:
 * Pro Linux, Mac``OS X, a jiné Unixové varianty, proveďte instalaci podle pokynů v UnixInstall.
 * Instalaci ve Windows, lze provést dle instrukcí v WindowsInstall.
 * For Linux, Mac``OS X, and other Unix variants, follow the UnixInstall directions.
 * On Windows, follow the WindowsInstall instructions.
Line 10: Line 10:
Po ukončení instalace se vraťe zpět. Once you're done, come back here.
Line 12: Line 12:
Program Mercurialu se jmenuje {{{hg}}}. Tímto označením začíná každý příkaz; následuje jméno příkazu a za ním případné možnosti či argumenty. The Mercurial program is named {{{hg}}}. Every Mercurial command starts with {{{hg}}}, followed by the command name, followed by any relevant options and arguments.
Line 14: Line 14:
Teď, když máme Mercurial nainstalován, stačí když na příkazovou řádku v okně našeho terminálu zapíšeme {{{hg}}}, aby nám program potvrdil, že je připraven: 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:
Line 20: Line 20:
základní příkazy: basic commands:
Line 22: Line 22:
 add přidat označené soubory pro následný commit
 annotate zobrazit změny (v souboru) řádek po řádce
 clone provést kopii existujícího repozitáře
 commit předat označené soubory k záznamu v repozitáři
 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
Line 28: Line 28:
použijte "hg help" pro získání úplného seznamu příkazů nebo "hg -v" pro zobrazení detailů use "hg help" for the full list of commands or "hg -v" for details
Line 31: Line 31:
Nainstalovanou verzi svého Mercurialu zjistíme: To determine what version of Mercurial we are running, let's type:
Line 42: Line 42:
Mercurial používá uživatelské jméno implicitně ve tvaru `user@localhost` pro [[Commit|commit]].
To však často nemá širší význam. Nejlepší je nastavit vlastní emailovou adresu v konfiguračním souboru`~/.hgrc`<<FootNote(http://www.selenic.com/mercurial/hgrc.5.html)>>
(nebo ve Windows v `%USERPROFILE%\Mercurial.ini`, MercurialIni) přidáním obdoby následujících řádků:
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:
Line 50: Line 51:
Jde-li nám vše jak má jít, pokračujmež v TutorialClone. If all has gone well, let's continue on to TutorialClone.

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.

By default Mercurial uses a username of the form user@localhost for commits. This is often meaningless. It's best to configure a proper email address in ~/.hgrc1 (or on Windows in %USERPROFILE%\Mercurial.ini, MercurialIni) by adding lines such as 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)