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

Leave a comment

Skills421

Welcome to Skills421, our knowledge repository for all things tech in the 21st century

Let’s connect

Search