Mercurial

From Wiki
Revision as of 23:24, 7 November 2012 by Scott (talk | contribs) (Created page with '{{lowercase title}} == Client == http://hginit.com/ The command for Mercurial is <code>hg</code>. === Create a repository === Suppose you want to set up version control for th…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Client

http://hginit.com/

The command for Mercurial is hg.

Create a repository

Suppose you want to set up version control for the my_code directory.

cd my_code
hg init    # creates .hg directory
hg add     # adds everything from the current directory
hg commit  # has you enter a text description, then creates a first snapshot of the directory