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] [<options>] [--exec <cmd>] [--onto <newbase> | --keep-base] [<upstream> [<branch>]]
git rebase [-i | --interactive] [<options>] [--exec <cmd>] [--onto <newbase>] --root [<branch>]
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

posted @ 2022-03-01 13:56  原子切割员  阅读(1231)  评论(0编辑  收藏  举报