Skip to content

Instantly share code, notes, and snippets.

@acodesmith
Created October 14, 2021 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acodesmith/3bbea088ac2f8f3eba1f2997ba25f2b8 to your computer and use it in GitHub Desktop.
Save acodesmith/3bbea088ac2f8f3eba1f2997ba25f2b8 to your computer and use it in GitHub Desktop.
List all branch commits with somewhat pretty formatting
git log $(git branch --show-current) --not $(git for-each-ref --format='%(refname)' refs/heads/ | grep -v "refs/heads/$(git branch --show-current)") --pretty=format:"%B"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment