Mercurial: How do you undo changes?

hg revert will do the trick.

It will revert you to the last commit.

--all will revert all files.

See the link for the Man Page description of it.

hg update is usually used to refresh your working directory after you pull from a different repo or swap branches. hg up myawesomebranch. It also can be used to revert to a specific version. hg up -r 12.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)