Skip to content

Instantly share code, notes, and snippets.

@vgaidarji
Created May 19, 2017 09:01
Show Gist options
  • Save vgaidarji/bfff58385d3114d7e8b291a1a923fece to your computer and use it in GitHub Desktop.
Save vgaidarji/bfff58385d3114d7e8b291a1a923fece to your computer and use it in GitHub Desktop.
Script which lists remote branches by age and includes some related information to identify last author and any branch names.
#!/bin/sh
exec git branch -r | cut -d' ' -f3 | xargs git show --pretty='%Cgreen%ai %Creset%h %an %d' -s | sed '/^$/d' | sort | uniq
@vgaidarji
Copy link
Author

screen shot 2017-05-19 at 12 09 32 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment