Skip to content

Instantly share code, notes, and snippets.

@battleguard
Created March 31, 2017 14:26
Show Gist options
  • Save battleguard/ab383c656535cf612ab906765084e124 to your computer and use it in GitHub Desktop.
Save battleguard/ab383c656535cf612ab906765084e124 to your computer and use it in GitHub Desktop.
GIT COMMANDS
Show Last Commit on each remote branch
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
Raw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment