例如:
* c7e0107 - (22 hours ago) Merge branch 'branch_b' - MASTER
|\
| * 3b90496 - (22 hours ago) Merge branch 'branch_a' into branch_b -
| |\
| * | 033fef1 - (22 hours ago) _____________ -
| * | 29449c6 - (22 hours ago) _____________ -
* | | cbd8a15 - (22 hours ago) Merge branch 'branch_a' - MASTER
|\ \ \
| | |/
| |/|
| * | e5e4aa4 - (22 hours ago) _____________ -
| * | 7215282 - (22 hours ago) _____________ -
| * | e9aadd9 - (22 hours ago) _____________ -
| * | 4824cef - (22 hours ago) _____________ -
* | | 4a13ff3 - (22 hours ago) _____________ - MASTER
| |/
|/|
* | 77b9965 - (22 hours ago) _____________ - MASTER
* | 47fef00 - (22 hours ago) _____________ - MASTER
|/
* 2cd1c2e - (22 hours ago) _____________ - MASTER
* 768ebc8 - (22 hours ago) _____________ - MASTER
我想只显示描述为' MASTER'的提交。我注意到了 - 第一父母'选项或' git cherry -v master'不起作用。我也不能从图中做到这一点,因为通常主分支不在最左边。
答案 0 :(得分:0)
--first-parent
选项应该诀窍