LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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.

INSTALL

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

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)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid