简体   繁体   English

Git:如何列出从特定日期合并到主控的所有远程分支/按日期排序

[英]Git : how to list all remote branches which ve been merged to master from a specific date / sorted by date

i want to list all remote features branches which ve been already merged to my "master" branch, ordered by date or sorted by chronological date of merge我想列出已经合并到我的“主”分支的所有远程功能分支,按日期排序或按合并的时间日期排序

i'm using this command, to get the merged branches, but still cannot get the sort or the list ordered by date of merge:我正在使用此命令来获取合并的分支,但仍然无法获取按合并日期排序的排序或列表:

git branch -r --merged master | grep "origin/"

Suggesstions?建议?

git for-each-ref --merged=master --sort=authordate refs/remotes/

See the docs for git for-each-ref .请参阅git for-each-ref的文档

Pattern refs/remotes/ means "list only remote branches".模式refs/remotes/表示“仅列出远程分支”。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM