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 ArticleGit: 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