Menu

gitpiper

View branches sorted by date git Code Snippet in 2025

repositorybranchintermediate

Last Updated: 20 April 2025

Prints a list of all local branches sorted by date.

  • Use git branch --sort=-committerdate to display a list of all local branches and sort them based on the date of their last commit.
  • Use arrow keys to navigate, press <kbd>Q</kbd> to exit.
git branch --sort=-committerdate
git branch --sort=-committerdate # master # patch-1 # patch-2

git snippet similar to View branches sorted by date For You in April 2025

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️

© 2025 GitPiper. All rights reserved

Rackpiper Technology Inc

Company

About UsBlogContact

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️