Created
July 2, 2019 01:34
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @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