How to rebase in tortoisehg?

后端 未结 1 1602
夕颜
夕颜 2020-12-21 16:02

Often after committing changes, I do a pull, before pushing my changes, and someone has already committed changes. I could do another (merge) commit, but where possible I li

相关标签:
1条回答
  • 2020-12-21 16:45

    First enable rebase:

    File -> Settings -> Extensions

    Then (after restarting tortoisehg)

    1. Update to the changeset you want to rebase on to.

    1. Right click on change you want to rebase and select the Modify History -> Rebase menu.

    1. Click Rebase.

    And you should end up with something like this:

    Warnings:

    1. It's not usually a good idea to rebase a changeset with a public Phase.
    2. Avoid rebasing changes that are likely to produce complicated merge conflicts.
    0 讨论(0)
提交回复
热议问题