2
我合併分支發展成爲分支我的特徵用下面的命令:如何判斷哪些提交包含在合併中?
$ git merge --no-ff develop
我預計,以後我的特徵分支將被兩次提交提前起源/我-功能:這次合併提交,另我想帶。然而,git status
報告說,它由三個提交的未來:
$ git status
On branch my-feature
Your branch is ahead of 'origin/my-feature' by 3 commits.
(use "git push" to publish your local commits)
nothing to commit, working directory clean
我想弄清楚被包括在合併其提交不通過日誌梳理。是否有命令列出它們或僅列出「前進」的提交?我試着做一個硬重置並使用git merge --log
,認爲它會在日誌消息中列出它們,但它只顯示一次提交。