LinuxCommandLibrary

hg-update

hg-update

TLDR

Update to the tip of the current branch

$ hg update
copy


Update to the specified revision
$ hg update --rev [revision]
copy


Update and discard uncommitted changes
$ hg update --clean
copy


Update to the last commit matching a specified date
$ hg update --date [dd-mm-yyyy]
copy

Copied to clipboard