Skip to content

Monthly Archives: June 2010

Undo a pushed commit in mercurial.

You have committed to your local repository, and pushed to the remote repo. Now you want to undo that commit (a bit similar to a subversion revert). Do

hg backout -m ‘back out change’ tip

See this for more details :
http://hgbook.red-bean.com/read/finding-and-fixing-mistakes.html