How to rebase in tortoisehg?

本小妞迷上赌 提交于 2020-04-14 03:57:19

问题


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)

  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.


来源:https://stackoverflow.com/questions/57421626/how-to-rebase-in-tortoisehg

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!