【发布时间】:2019-06-10 18:56:47
【问题描述】:
我知道git commit --fixup <commit A's hash> 可以在执行git rebase -i --autosquash 时做出将与提交A 结合的提交B。
当我运行 git log 时,我的提交日志看起来像
commit <commit B's hash>
Author: xxx
Date: xxx
fixup! commit A's comment
commit <commit A's hash>
Author: xxx
Date: xxx
commit A's comment
对我来说,修复提交看起来与普通提交没有什么不同,只是注释前面有一个“修复!”。
我想知道 git 是如何以及在哪里跟踪 commit B 是一个标有 <commit A's hash> 的修复提交这一事实,如果有的话;如果是这种情况,是否有一个 git log 等效项允许我访问 <commit A's hash> 以及 commit B?
谢谢!
【问题讨论】: