The purpose of this document is to provide quick reference to the often-used commands of mercurial (hg).
List all branches
hg branches
Update to a branch
hg update <branchname>
Update to a branch (discard any local changes)
hg update <branchname> -C
Add a Remote Repository
To add a remote repository, add a [paths]
entry to the .hg/hgrc
file for the repository:
[paths]
default = ssh://path/to/repository
myremote = ssh://another/path/somewhere/else