LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

hg-update

updates the working directory to a specific revision

TLDR

Update to tip
$ hg update
copy
Update to specific revision
$ hg update -r [revision]
copy
Update to branch
$ hg update [branch-name]
copy
Update to tag
$ hg update [tag-name]
copy
Clean update discarding changes
$ hg update -C
copy
Check for uncommitted changes first
$ hg update -c [revision]
copy

SYNOPSIS

hg update [options] [rev]

DESCRIPTION

hg update (alias: up, checkout, co) updates the working directory to a specific revision. Without arguments, updates to the tip of the current branch. Can update to revisions, branches, tags, or bookmarks. Use -C to discard local changes or -c to abort if changes exist.

PARAMETERS

-r, --rev rev

Revision to update to.
-C, --clean
Discard uncommitted changes.
-c, --check
Abort if uncommitted changes exist.
-m, --merge
Merge uncommitted changes.
-d, --date date
Tipmost revision matching date.

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

SEE ALSO

hg(1), hg-pull(1), hg-commit(1), hg-status(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