Skip to content

Instantly share code, notes, and snippets.

@peabnuts123
Created July 2, 2019 01:34
Show Gist options
  • Save peabnuts123/6d775a8b7a9334aaf7d0aceec65fef95 to your computer and use it in GitHub Desktop.
Save peabnuts123/6d775a8b7a9334aaf7d0aceec65fef95 to your computer and use it in GitHub Desktop.
Git patch-notes alias, for formatting commits in a patch-notes friendly way
# @NOTE You will need to change column width of User name (currently 20) to match the length of the names
# of the people on your team!!
# Register alias on git:
git config --global alias.patch-notes 'log --pretty="%h %<(20)%an%<(22)%ad %s" --date="format:%m/%d %a %T%t"'
# Usage:
# git patch-notes
# git patch-notes release/2019-05..HEAD
# etc.
# Raw command:
# git log --pretty="%h %<(20)%an%<(22)%ad %s" --date="format:%m/%d %a %T%t"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment