diff --git a/pages/common/hg-update.md b/pages/common/hg-update.md new file mode 100644 index 0000000000..d0fdf4c1ad --- /dev/null +++ b/pages/common/hg-update.md @@ -0,0 +1,19 @@ +# hg update + +> Update the working directory to a specified changeset. + +- Update to the tip of the current branch: + +`hg update` + +- Update to the specified revision: + +`hg update --rev {{revision}}` + +- Update and discard uncommitted changes: + +`hg update --clean` + +- Update to the last commit matching a specified date: + +`hg update --date {{date}}`