checkout and rebase onto current
需要把我已修改的分支patch的内容合并到主分支master上,当前分支为patch,点击main后选择checkout and rebase onto current ,就能把patch上的新更新更新到master上。
这个current 指的是当前分支patch,rebase onto 指的是希望最终分支呈现的样子,我的需求是master最终呈现出pathc修改的内容。
rebase current onto selected
当前分支为patch,如果master有别人修改的内容,需要更新内容,即选择master,rebase current onto selected,就能把master的内容更新到patch上,即onto 最终呈现的样子是master的更改。