HelpHgIntro » History » Version 2
Luis Figueira, 2011-03-15 06:07 PM
some changes
1 | 2 | Luis Figueira | h1. An Introduction to Mercurial using easyHg |
---|---|---|---|
2 | 1 | Luis Figueira | |
3 | 2 | Luis Figueira | Mercurial is a distributed revision control tool. It is written in Python. |
4 | 1 | Luis Figueira | |
5 | 1 | Luis Figueira | |
6 | 1 | Luis Figueira | h2. Basic Commands |
7 | 1 | Luis Figueira | |
8 | 1 | Luis Figueira | These are some of the commands you'll find in the easyMercurial interface: |
9 | 1 | Luis Figueira | |
10 | 1 | Luis Figueira | *add* add the specified files on the next commit |
11 | 1 | Luis Figueira | *commit* commit the specified files or all outstanding changes |
12 | 1 | Luis Figueira | *diff* diff repository (or selected files) |
13 | 1 | Luis Figueira | *incoming* show new changesets found in source (in the easyMercurial interface this command is called Preview) |
14 | 1 | Luis Figueira | *merge* merge working directory with another revision |
15 | 1 | Luis Figueira | *pull* pull changes from the specified source |
16 | 1 | Luis Figueira | *push* push changes to the specified destination |
17 | 1 | Luis Figueira | *revert* restore individual files or directories to an earlier state |
18 | 1 | Luis Figueira | *update* update working directory (or switch revisions) |
19 | 1 | Luis Figueira | |
20 | 1 | Luis Figueira | |
21 | 1 | Luis Figueira | h2. Typical Workflow |
22 | 1 | Luis Figueira | |
23 | 2 | Luis Figueira | h3. Creating or Opening a Repository |
24 | 1 | Luis Figueira | |
25 | 2 | Luis Figueira | h4. Local Repository |
26 | 1 | Luis Figueira | |
27 | 2 | Luis Figueira | Allows you to open a local repository. |
28 | 2 | Luis Figueira | |
29 | 2 | Luis Figueira | h4. File Folder |
30 | 2 | Luis Figueira | |
31 | 2 | Luis Figueira | Allows you to initialize a local folder as a Mercurial repository. |
32 | 2 | Luis Figueira | |
33 | 2 | Luis Figueira | h4. External Repository |
34 | 2 | Luis Figueira | |
35 | 2 | Luis Figueira | If you have a remote repository URL and want to clone (make a copy of an existing repository) it to your local filesystem. |
36 | 2 | Luis Figueira | |
37 | 2 | Luis Figueira | |
38 | 2 | Luis Figueira | Workflow |
39 | 2 | Luis Figueira | |
40 | 2 | Luis Figueira | Updating local from remote: |
41 | 2 | Luis Figueira | |
42 | 2 | Luis Figueira | pull |
43 | 2 | Luis Figueira | update |
44 | 2 | Luis Figueira | |
45 | 2 | Luis Figueira | |
46 | 2 | Luis Figueira | |
47 | 2 | Luis Figueira | |
48 | 2 | Luis Figueira | |
49 | 2 | Luis Figueira | |
50 | 2 | Luis Figueira | |
51 | 2 | Luis Figueira | |
52 | 1 | Luis Figueira | h3. External resources |
53 | 1 | Luis Figueira | |
54 | 2 | Luis Figueira | * For a simple tutorial on Mercurial (command line), please go to http://hginit.com/ |
55 | 2 | Luis Figueira | * _Mercurial: The Definitive Guide_ by Bryan O'Sullivan is a reference book on Mercurial. You can read it for free here: http://hgbook.red-bean.com/ |