Git_学习_11_Git rebase合并提交信息

一、前言

二、操作过程

(1)先后两次进行文件修改,然后提交到本地仓库。
(2)使用 git rebase -i origin/dev 来合并提交信息。

会弹出一个编辑框

p 07c5abd Introduce OpenPGP and teach basic usage
s de9b1eb Fix PostChecker::Post#urls

编辑保存之后,还会弹出一个编辑框,让你输入合并之后的提交信息。

(3) git push origin dev

原文地址:https://www.cnblogs.com/shirui/p/9777601.html