-
Notifications
You must be signed in to change notification settings - Fork 0
git rebase
2012 edited this page Jul 20, 2020
·
2 revisions
作用
- 能使 log 日志变得干净、整洁 —— 无参数
- 能合并/修改/删除 commit —— i
- 能跨分支而不影响 log 日志杂乱 —— onto
- git rebase 用于修改当前分支的基准点
- git rebase -i HEAD~5 用于交互式删除、修改、合并 commit
-
git rebase --onto <newbase> <oldbase> (<current-branch>)
默认是修改当前分支的基准点 git rebase --onto <newbase> <oldbase> <another-branch>
PS
只能操作没有被合并的分支,千万不能用于已经合并的 commit;
使用 rebase 可以使 log 干净、整洁,便于使用git bisect
排查合并代码的问题
JS
CSS
- float
- BFC
- position
- flex
- grid
DOM
- DOM
- how browser works
Node.js
react
- 生命周期
- setState
- hook
git
- git 基础命令
- git rebase 理解
- git bisect
- git commit
- git hook
设计模式
- 策略模式
- ...
TCP/IP 协议
- HTTP/1.x
- HTTP/2
- SSL/TLS
- TCP
- DNS
- HTTP Cache
- CORS
- http status code
linux(shell)知识点