Checkout and Rebase onto Current、Rebase Current onto Selected、Merge into Current的区别
举例场景
当前所在分支:dev-name
本地还存在的其他分支:dev
点击idea右下角
Git: dev-name
按钮会弹出Git Branches
弹窗,点击Local Branches
下的dev
(不是当前分支,另外的分支)会弹出新弹窗,弹窗有以下一些操作按钮:Checkout
New Branch from Selected…
Checkout and Rebase onto Current
Compare with Current
Show Diff with Working Tree
Rebase Current onto Selected
Merge into Current
Push…
Rename…
Delete
- 以上是在
dev-name
分支,点击dev
分支按钮出现的内容,其中Selected
表示选中的分支(dev),Current
表示当前分支(dev-name)