[英]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.