Skip to content

Instantly share code, notes, and snippets.

@thepaul
Created June 10, 2016 21:46
Show Gist options
  • Save thepaul/984fbe7335533652b811a4d928029c99 to your computer and use it in GitHub Desktop.
Save thepaul/984fbe7335533652b811a4d928029c99 to your computer and use it in GitHub Desktop.
git for-each-ref --format '%(refname) %(authoremail) %(committerdate:raw)' refs/remotes/origin/ \
| sort -k2,3 \
| awk '$3 < (systime()-(86400*30)) {
gsub(/refs\/remotes\//, "", $1);
printf "%-30s %-26s %s\n", $1, $2, strftime("%Y-%m-%d %H:%M", $3)
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment