LinuxCommandLibrary

hg-push

sends local changesets to a remote repository

TLDR

Push to default remote

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

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.

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), hg-outgoing(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community