Skip to content

Instantly share code, notes, and snippets.

@skarllot
Last active December 12, 2023 18:53
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 skarllot/402476fb852307f5cfa194c6ac57f63f to your computer and use it in GitHub Desktop.
Save skarllot/402476fb852307f5cfa194c6ac57f63f to your computer and use it in GitHub Desktop.
Analyze Git commits between branches
# Format: - 2023-05-15 Name: Commit message
git log --cherry-pick --right-only --no-merges --reverse --pretty="- %ad %cn: %s" --date=short branch-a...branch-b
# Format: - 2023-05-15 Commit message
git log --cherry-pick --reverse --pretty="- %ad %<(35,trunc)%s" --date=short branch-a...branch-b
# Format: example@example.com 2023-04-25 initial commit
git log --cherry --reverse --pretty="%<(20,trunc)%ce%x09%>(10)%ad%x09%s" --date=short branch-a...branch-b
git log --cherry --reverse branch-a...branch-b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment