Adapted from Heftig's (Jan Alexander Steffens) note on IRC
git config --global alias.mdlog 'log --reverse --pretty=format:"- **%s** %w(0,2,2)%+b"'
This will format commits in a way that's nice for pasting into MR descriptions,
assuming the commit body is markdown.
Usually used like below
git mdlog @{u}.. | wl-copy
git mdlog origin/main.. | wl-copy