git rebase 命令参数
1,rebase命令介绍
rebase 主要作用如其名:重新设置基点到指定位置。此外还可以结合squash操作进行提交记录压缩,结合drop操作进行提交记录删除,选取连续到提交记录转移到指定分支。
2,rebase官方参数
NNAAMMEE
git-rebase - Reapply commits on top of another base tip
SYNOPSIS
git rebase [-i | --interactive] [] [--exec ] [--onto | --keep-base] [ [ ]]
git rebase [-i | --interactive] [] [--exec ] [--onto ] --root [ ]
git rebase (--continue | --skip | --abort | --quit | --edit-todo | --show-current-patch)
3,官方中文文档:
https://git-scm.com/book/zh/v2/Git-%E5%88%86%E6%94%AF-%E5%8F%98%E5%9F%BA