March 25, 2020
By: Kevin

交互式rebase合并多个提交

场景

本地的master(或者其他什么分枝上)有一系列commit, 比较乱, 希望在push之前, 对这些commit进行以下整理合并.

rebase -i

交互式rebase能完成这个工作, 参照git rebase的文档

emacs上使用magit迅速完成工作

asciicast

Tags: git