Skip to content

Instantly share code, notes, and snippets.

@lolgear
Created February 1, 2017 11:51
Show Gist options
  • Save lolgear/42c9c8c956df9d2a5877c8467b2ddcee to your computer and use it in GitHub Desktop.
Save lolgear/42c9c8c956df9d2a5877c8467b2ddcee to your computer and use it in GitHub Desktop.
Output commits between two tags with format including date and sha and message
git log --format='%ad %h %B' 'TagName'..'HEAD' | perl -ne '/^\s+$/ or print;'
@lolgear
Copy link
Author

lolgear commented Jul 2, 2018

git log --format='%ad %h %B' "$(pbpaste)"..'HEAD' | perl -ne '/^\s+$/ or print;'

@lolgear
Copy link
Author

lolgear commented Oct 17, 2018

git log --date=iso --format="%ad\t%B" "$(pbpaste)"..'HEAD' | perl -ne 's/\\t/\t/g; /^\s+$/ or print;'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment