如果 my-feature-branch
被 merge 到 my-main-branch
中,我如何查看从 my-feature-branch 中 merge 了哪些提交
?
最佳答案
git log abc123^..abc123
显示 merge 到 merge-commit abc123
中的提交。
创建一个 git
别名 log-merge
以便于重用:
$ git config --global alias.log-merge \
'!f() { git log --stat "$1^..$1"; }; f'
$ git log-merge abc123
对于单行版本:
$ git config --global alias.log-merge-short \
'!f() { git log --pretty=oneline "$1^..$1"; }; f'
关于git - 如何查看 merge 到 merge 提交中的提交?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6191138/