Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JurrianFahner/b15bb192b05f339c26a2008cb2cc4145 to your computer and use it in GitHub Desktop.
Save JurrianFahner/b15bb192b05f339c26a2008cb2cc4145 to your computer and use it in GitHub Desktop.
Get data from git via bash
for branch in `git branch | grep -v HEAD`;do echo -e `git show --format="%ci %cr %H" $branch | head -n 1` \\t$branch; done | sort -r
for branch in $(git for-each-ref --format='%(refname:short)' refs/heads);do echo -e `git show --format="%ci %cr %H" $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