Skip to content

Instantly share code, notes, and snippets.

@tonicebrian
Created January 21, 2020 08:27
Show Gist options
  • Save tonicebrian/a09a637183399096fa0a5d3cec4e37cb to your computer and use it in GitHub Desktop.
Save tonicebrian/a09a637183399096fa0a5d3cec4e37cb to your computer and use it in GitHub Desktop.
Find who created the last commit in unattended remote branches
#!/bin/bash
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci\t%cr\t%cN" $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