合并多条commit
场景:
改完 bug
提交了 commit
之后发现没有改全, 需要再次修改提交, 但是一个 bug
不想有多条 commit
示例:1
2
3
4
5
6
7
8
9
10
11
12
13$ git log
commit e47711f5633548b809b7e8f669d6fb608a84680e (HEAD -> master)
Author: lovehhf <853885165@qq.com>
Date: Thu Mar 19 21:06:04 2020 +0800
duplicate commit
commit b7e411f6843b08aaa41ec68a7fdb2b241eb03fd0
Author: lovehhf <853885165@qq.com>
Date: Thu Mar 19 21:05:55 2020 +0800
duplicate commit
commit 9c0c06c2478df556adce50fb26faf559424f8e78
Author: lovehhf <853885165@qq.com>
Date: Thu Mar 19 21:02:31 2020 +0800
[ADD] 1.txt