git merge-base [-a | --all] <commit> <commit>… git merge-base [-a | --all] --octopus <commit>… git merge-base --is-ancestor <commit> <commit> git merge-base --independent <commit>… git merge-base --fork-point <ref> [<commit>]
如下图:4,6,7的共同commit点就是2
参考:https://git-scm.com/docs/git-merge-base
标签:找出,git,--,merge,base,commit,共同 From: https://www.cnblogs.com/leodaxin/p/17334718.html