TortoiseHG / Mercurial Quick Ref


List the current local branch

hg identify -b

hg branch

List all local branches

Start a new local branch

hg branch <branchname>

Add changes

hg add <filename>

hg add .

Commit a branch

hg commit -m “commit message”

Pull remote code

hg pull

Update the local repository

hg update

Push local changes to remote

hg push

References:

http://dig.csail.mit.edu/2011/hg-cheatsheet.html

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s