简体   繁体   English

有没有办法检查来自特定分支的所有合并提交?

[英]Is there a way to check all merged commits that come from a specific branch?

If I have master branch and merge in commits from branch foo multiple times, is there a command to find all those commits?如果我有 master 分支并多次合并来自分支 foo 的提交,是否有命令可以找到所有这些提交?

Finding the oldest merge base of two first-parent histories is an easy enough request,找到两个第一亲历史的最旧合并基础是一个很容易的请求,

oldestbase=$(
        (git rev-list --first-parent mainline; git rev-list --first-parent feature) \
        | awk 'seen[$0]++ {print;exit}'
)

and then your list of feature commits to check is然后您要检查的feature提交列表是

git rev-list --first-parent --no-merges $oldestbase..feature

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 有什么方法可以检查在特定日期哪些提交被合并到一个分支? - is there any way to check which commits were merged to a branch on a specific day? 有没有办法签署特定于分支的所有提交? - Is there a way to sign all commits that are specific to a branch? 壁球提交与合并分支之间的提交 - Squash commits with commits from merged branch in between Git获取先前合并分支的所有提交 - Git getting all commits of a previously merged branch 有什么方法可以找到分支 A 的哪些提交尚未合并到分支 B(将其作为夜间报告)? - Is there any way to find which commits from branch A have not been merged on branch B (having it as a nightly report)? SVN-如何获取分支上所有提交以及合并到该分支的分支的所有列表? - SVN - how to get a list of all commits on a branch and from branches merged into that branch? git - 从合并分支中删除提交 - git - remove commits from merged branch 如何从合并分支移动提交? - How to move commits from merged branch? 合并和删除分支后,在特定功能分支上显示提交 - Show commits on a specific feature branch after branch is merged and deleted 什么是最简单的方法将git上的所有提交返回到尚未合并的master分支? - Whats the simplest way to return all commits on git to master branch that have not been merged already?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM