Skip to content

Instantly share code, notes, and snippets.

@Walkeryr
Last active December 26, 2015 20:49
Show Gist options
  • Save Walkeryr/7211945 to your computer and use it in GitHub Desktop.
Save Walkeryr/7211945 to your computer and use it in GitHub Desktop.
Mercurial commands
# change commit message after commit
hg commit --amend
# undo add before commit
hg revert [file_name|directory_name]
# create new branch
hg branch new-branch-name
# push new branch to remote
hg push --new-branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment