Skip to content

Instantly share code, notes, and snippets.

@joshuacook
Created July 15, 2021 17:56
Show Gist options
  • Save joshuacook/fff136dc266d39988aeb92ea343acf93 to your computer and use it in GitHub Desktop.
Save joshuacook/fff136dc266d39988aeb92ea343acf93 to your computer and use it in GitHub Desktop.
Git branches with date
eval "$(
git for-each-ref --shell --format \
"git --no-pager log -1 --date=iso --format='%%ad '%(align:left,25)%(refname:short)%(end)' %%h %%s' \$(git merge-base %(refname:short) main);" \
refs/heads
)" | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment