hg-push

sends local changesets to a remote repository

TLDR

Push to default remote
$ hg push
Push to specific URL
$ hg push [url]
Push specific branch
$ hg push -b [branch]
Push specific revision
$ hg push -r [revision]
Force push
$ hg push -f
Push new branch
$ hg push --new-branch

SYNOPSIS

hg push [options] [dest]

DESCRIPTION

hg push sends local changesets to a remote repository. It transfers committed changes that the remote doesn't have.The command verifies the push won't create multiple heads unless forced. It supports pushing specific branches or revisions.

PARAMETERS

DEST

Destination repository.
-b, --branch BRANCH
Push specific branch.
-r, --rev REV
Push up to revision.
-f, --force
Force push.
--new-branch
Allow pushing new branches.
-B, --bookmark NAME
Push bookmark.
--help
Display help information.

INSTALL

sudo apt install mercurial
sudo dnf install mercurial
sudo pacman -S mercurial
sudo apk add mercurial
sudo zypper install mercurial
brew install mercurial
nix profile install nixpkgs#mercurial

CAVEATS

Cannot push uncommitted changes. Force push can cause issues. Remote hooks may reject.

HISTORY

Push is a core Mercurial command for distributed collaboration since version 1.0.

SEE ALSO

hg(1), hg-pull(1)