简体   繁体   English

显示在 2 个日期之间合并到 Master 的所有分支 - Git

[英]Show all branches merged to Master between 2 dates - Git

With git log I can use --since and --until to show data between 2 dates.使用 git log 我可以使用 --since 和 --until 来显示两个日期之间的数据。 And with git branch -r I can extract all the remote branches.使用 git branch -r 我可以提取所有远程分支。

How would I show all branches merged to master between 2 dates?我将如何显示在 2 个日期之间合并到 master 的所有分支?

git log --since "DEC 1 2019" --until "JAN 1 2020" --pretty=format:"%h %an %ad"

This returns all commits between 2 dates but I'd like to return the branch names between these 2 dates that were merged to master?这将返回 2 个日期之间的所有提交,但我想返回合并到 master 的这两个日期之间的分支名称?

Thanks in advance.提前致谢。

You can try with the --merges and the --date flags for git log .您可以尝试使用git log--merges--date标志。 So it will look like:所以它看起来像:

git log --merges --date=iso --since "DEC 1 2019" --until "JAN 1 2020" --pretty=format:"%h %an %ad"

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

相关问题 为什么 git branch --merged 不显示所有合并的分支? - Why does git branch --merged not show all merged branches? Git:如何删除所有本地分支(合并与否),除了master和develop - Git : How to delete all local branches (merged or not), except master and develop Git:如何找到所有从未合并回master的分支 - Git: How to find all branches that were never merged back into master Git:显示分支之间的差异,忽略合并到的提交 - Git: show diff between branches, ignoring commits merged in 如何在git-flow中显示所有日志,包括合并的分支 - How to show all logs including the merged branches in git-flow Git:显示故障分支已合并到的所有远程分支 - Git: Show all remote branches that a faulty branch has been merged into Git:如何列出从特定日期合并到主控的所有远程分支/按日期排序 - Git : how to list all remote branches which ve been merged to master from a specific date / sorted by date 如何删除在 git 中以编程方式合并到 master 的超过 1 个月的分支? - How to delete branches older than 1 month that was merged to master programmatically in git? Linux内核的稳定git分支是否合并回主服务器? - Are the Linux kernel's stable git branches merged back into master? 如何以编程方式找到已使用git合并到master的分支? - How to programmatically find branches that were merged into master with git?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM