Quantcast
Channel: Git: Need to list latest 5 branches in git - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by neu242 for Git: Need to list latest 5 branches in git

git branch -r --sort=-committerdate | head -5 will give you the latest five branches.

View Article



Git: Need to list latest 5 branches in git

I am trying to get latest 5 branches using git. I have tried git branch -r --sort=-committerdate but it gets me all branches sorted by committerdate. Is there any way to get latest 5 one?Thanks

View Article
Browsing latest articles
Browse All 2 View Live


Latest Images