Is it possible to see the list of remote branches by creation date instead of alphabetical order?
Right now i use
git branch -r
Which outputs the below list of remote branches:
origin/HEAD -> origin/develop
origin/calendar-view-impl
origin/containers-redesign
origin/develop
origin/dialogs-view-impl
origin/dropdowns-redesign
It would be nice if this could be ordered by CREATION date of the branch.
To view your remote branches, simply pass the -r flag to the git branch command. You can inspect remote branches with the usual git checkout and git log commands.
If anyone likes to see when the branch is created via Github UI. Go to Insights Tab.
There is a field in git called authordate which can help to achieve similar result, please try following:
git for-each-ref --sort='-authordate'
Hoping this helps.
Cheers !
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With