问题
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 like to maintain linear history, as it makes things a bit easier to read.
So how does one rebase a changeset using tortoisehg, without resorting to using the command line?
回答1:
First enable rebase:
File -> Settings -> Extensions
Then (after restarting tortoisehg)
- Update to the changeset you want to rebase on to.
- Right click on change you want to rebase and select the Modify History -> Rebase menu.
- Click Rebase.
And you should end up with something like this:
Warnings:
- It's not usually a good idea to rebase a changeset with a public Phase.
- Avoid rebasing changes that are likely to produce complicated merge conflicts.
来源:https://stackoverflow.com/questions/57421626/how-to-rebase-in-tortoisehg