Skip to content
2012 edited this page Jul 20, 2020 · 2 revisions

作用

  • 能使 log 日志变得干净、整洁 —— 无参数
  • 能合并/修改/删除 commit —— i
  • 能跨分支而不影响 log 日志杂乱 —— onto

无参数

  • git rebase 用于修改当前分支的基准点

参数 i

  • git rebase -i HEAD~5 用于交互式删除、修改、合并 commit

参数 onto

  • git rebase --onto <newbase> <oldbase> (<current-branch>) 默认是修改当前分支的基准点
  • git rebase --onto <newbase> <oldbase> <another-branch>

git rebase

PS 只能操作没有被合并的分支,千万不能用于已经合并的 commit; 使用 rebase 可以使 log 干净、整洁,便于使用git bisect排查合并代码的问题

JS

  1. 作用域
  2. 闭包
  3. 原型(链)
  4. 模块
  5. 位操作符
  6. 事件循环
  7. eval

CSS

  1. float
  2. BFC
  3. position
  4. flex
  5. grid

DOM

  1. DOM
  2. how browser works

Node.js

  1. Stream
  2. Timers
  3. Child Processes
  4. HTTP
  5. File System

react

  1. 生命周期
  2. setState
  3. hook

git

  1. git 基础命令
  2. git rebase 理解
  3. git bisect
  4. git commit
  5. git hook

设计模式

  1. 策略模式
  2. ...

TCP/IP 协议

  1. HTTP/1.x
  2. HTTP/2
  3. SSL/TLS
  4. TCP
  5. DNS
  6. HTTP Cache
  7. CORS
  8. http status code

linux(shell)知识点

  1. bashrc vs profile
  2. vim
  3. shell基本语法
  4. shell 知识误区
  5. shell命令
  6. 鸟哥的Linux私房菜:基础学习篇
  7. sudo vs su
Clone this wiki locally