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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM