Skip to content

Instantly share code, notes, and snippets.

@abatilo
Created September 11, 2018 01:48
Show Gist options
  • Save abatilo/9ce2fa0ab2ca9204f5b428128fdae02e to your computer and use it in GitHub Desktop.
Save abatilo/9ce2fa0ab2ca9204f5b428128fdae02e to your computer and use it in GitHub Desktop.
Script for nicely formatting commits from a PR
#!/bin/sh
git log --reverse --format="_**%s**_%n%n%b" master..HEAD | xclip -sel clip
echo "Summary copied to clipboard"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment