Skip to content

Instantly share code, notes, and snippets.

@smit9612
Created January 26, 2019 06:01
Show Gist options
  • Save smit9612/328ecf4892d8dfbe2c340cde82ae144d to your computer and use it in GitHub Desktop.
Save smit9612/328ecf4892d8dfbe2c340cde82ae144d to your computer and use it in GitHub Desktop.
Show last commit git branch in history
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment