commands.sh

hg

all

Mercurial - a distributed source control management system. Some subcommands such as `commit` have their own usage documentation.

More info →

Options (2)

-m, --messageboolean

Commit changes to version history

Example: hg commit {{[-m|--message]}} {{message_text}}
-C, --cleanboolean

Reset everything the way it was in the latest commit

Example: hg update {{[-C|--clean]}}; hg purge

Examples (8)

Create an empty Mercurial repository

Clone a remote Mercurial repository from the internet

hg clone https://example.com/repo

View the status of a local repository

Add all new files to the next commit

Commit changes to version history

hg commit [-m|--message] message_text

Push local changes to a remote repository

Pull any changes made to a remote

Reset everything the way it was in the latest commit

hg update [-C|--clean]; hg purge
made by @shridhargupta | data from tldr-pages