How does ancestry path work with git log?

前端 未结 2 932
名媛妹妹
名媛妹妹 2020-12-13 19:50

I\'ve read the git log documentation, but I still find it very difficult to understand what the --ancestry-path option does. I see different ways to invoke

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-13 20:09

    As the documentation says, --ancestry-path removes commits that are not descendant of origin/master. If you have a local, unmerged branch, and this branch is based on a commit which is older than origin/master, then commits in this branch will not be shown because these commits are not descendant of origin/master.

提交回复
热议问题