简体   繁体   中英

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 .

Pattern refs/remotes/ means "list only remote branches".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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