Skip to content



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

One Comment

  1. Rei-chan wrote:

    Nice one, thanks. Mercurial docs suck.

    Saturday, November 26, 2011 at 6:31 pm | Permalink

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*