Search code examples
mercurial

Can I squash commits in Mercurial?


I have a pair of commits that should really be just one. If I was using git, I would use:

git rebase -i <some-commit-before>

and then squash them.

Can I do that in mercurial? If so, how?


Solution

  • Yes, you can do this using mercurial without any extensions by Concatenating Changesets.

    Alternately if you want to use an extension you could use: