Mercurial > hg
comparison README @ 3689:25e549e9b7d0
Improved examples for network support in README.
- Simplified 'hg serve' example, -p80 needs root anyway.
- Example for ssh:// with relative or absolute path.
- merges need to be committed.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Mon, 20 Nov 2006 21:03:02 +0100 |
parents | 72efff4be2ad |
children | 048e9bc5cdc2 |
comparison
equal
deleted
inserted
replaced
3688:d92dad355000 | 3689:25e549e9b7d0 |
---|---|
74 | 74 |
75 # pull from the primary Mercurial repo | 75 # pull from the primary Mercurial repo |
76 foo$ hg clone http://selenic.com/hg/ | 76 foo$ hg clone http://selenic.com/hg/ |
77 foo$ cd hg | 77 foo$ cd hg |
78 | 78 |
79 # export your current repo via HTTP with browsable interface | 79 # make your current repo available via http://server:8000/ |
80 foo$ hg serve -n "My repo" -p 80 | 80 foo$ hg serve |
81 | 81 |
82 # pushing changes to a remote repo with SSH | 82 # pushing and pulling changes to/from a remote repo with SSH |
83 foo$ hg push ssh://user@example.com/~/hg/ | 83 foo$ hg push ssh://user@example.com/my/repository |
84 foo$ hg pull ssh://user@example.com//home/somebody/his/repository | |
84 | 85 |
85 # merge changes from a remote machine | 86 # merge changes from a remote machine (e.g. running 'hg serve') |
86 bar$ hg pull http://foo/ | 87 bar$ hg pull http://foo:8000/ |
87 bar$ hg merge # merge changes into your working directory | 88 bar$ hg merge # merge changes into your working directory |
89 bar$ hg commit # commit merge in to your local repository | |
88 | 90 |
89 # Set up a CGI server on your webserver | 91 # Set up a CGI server on your webserver |
90 foo$ cp hgweb.cgi ~/public_html/hg/index.cgi | 92 foo$ cp hgweb.cgi ~/public_html/hg/index.cgi |
91 foo$ emacs ~/public_html/hg/index.cgi # adjust the defaults | 93 foo$ emacs ~/public_html/hg/index.cgi # adjust the defaults |
92 | 94 |