Git 命令之代码合并 rebase
Git 大约 265 字合并代码之 rebase
合并某个分支上的一系列 commits
如需要合并commit abc-def-ghi-jkl
到master
分支。
- 创建一个新的分支,并指明新分支的最后一个
commit
:
git checkout -b newbranch jkl
rebase
这个新分支的commit
到master(--onto master)
。jkl
指明想从哪个特定的commit
开始。得到的结果就是commit abc~jkl
都被合并到了master
分支。
git rebase --onto master jkl
阅读 2190 · 发布于 2019-03-18
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
MySQL 内置函数之数学函数阅读 1716
-
JavaScript Failed to execute 'requestFullscreen' on 'Element': API can only be initiated by a user gesture.阅读 5474
-
Go 定时任务阅读 1523
-
Docker 部署 Swagger Editor阅读 398
-
软考-系统架构设计师:商业智能(BI)阅读 1891
-
Spring Native 打包成 exe 可执行文件阅读 1153
-
Linux 根据一个文件内容查找另一个文件中的内容阅读 7149
-
Vue 脚手架工具 Vue CLI阅读 292
-
微信小程序修改 wxParse 支持代码块不换行/表格无法横向滚动等阅读 3694
-
查看保存过但显示为星号的密码阅读 4332