You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1 pick 2275781 init test configuration
2 pick 223fc80 unit test case3 pick 9ac1179 update test case45 # Rebase 79db0bd..9ac1179 onto 79db0bd (3 commands)
6 #
7 # Commands:8 # p, pick = use commit
9 # r, reword = use commit, but edit the commit message
10 # e, edit= use commit, but stopfor amending
11 # s, squash = use commit, but meld into previous commit
12 # f, fixup = like "squash", but discard this commit'slog message
13 # x, exec= run command (the rest of the line) using shell14 # d, drop=remove commit
15 #
16 # These lines can be re-ordered; they are executed from topto bottom.
17 #
18 # If you removealine here THAT COMMIT WILL BE LOST.
19 #
20 # However, if you remove everything, the rebase will be aborted.
21 #
22 # Note that empty commits are commented out
1edit2275781 should find method from parent
2 pick 223fc80 unit test case3 pick 9ac1179 update test case
将会看到如下信息
client_java git:(fix_aop_no_class_defined) git rebase -i HEAD~3
Stopped at 2275781... should find method from parent
You can amend the commit now, with
git commit --amend
Once you are satisfied with your changes, run
git rebase --continue
➜ client_java git:(2275781)
执行 git 命令, 修改近三次的信息
将会得到如下的信息,这里的提交日志是和
git log
倒顺序排列的,我们要修改的日志信息位于第一位.我们现在要修改修改要
init test configuration
这条日志,那么修改的日志为,将第一个pick
修改为edit
, 然后:wq
退出将会看到如下信息
意思就是如果要改日志,执行
git commit --amend
,如果修改完成后,执行git rebase --continue
完事儿之后再运行
git log
就会看到修改以后的注释信息了参考链接
注意
提交内容之间有冲突的话,慎用!!!【解决冲突后会把冲突的两次提交合并为一次提交】
The text was updated successfully, but these errors were encountered: