Skip to content

Instantly share code, notes, and snippets.

@karakays
Last active July 5, 2019 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karakays/c6bd67eda6a9a8ae7258456717fabf10 to your computer and use it in GitHub Desktop.
Save karakays/c6bd67eda6a9a8ae7258456717fabf10 to your computer and use it in GitHub Desktop.
Mercurial cheatsheet

basic flow

hg add a b
hg commit a -m "added a" # commit specific file
hg push

discard local changes

hg revert file # revert file
hg revert --all

log recent commits

git log --limit 5

undo most recent commit and keep in working directory

hg strip --keep -r .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment