Skip to content

Instantly share code, notes, and snippets.

@davidtingsu
Created January 23, 2019 22:13
Show Gist options
  • Save davidtingsu/ac4be55389608a5f290c1653f9fd00f7 to your computer and use it in GitHub Desktop.
Save davidtingsu/ac4be55389608a5f290c1653f9fd00f7 to your computer and use it in GitHub Desktop.
get git commits in time range and output description in oneline
# https://devhints.io/git-log-format
# https://stackoverflow.com/a/19169532/1123985
git rev-list master --author=Name --before="12/31/2018" --after="1/1/2018" |
while read sha1; do
git show -s --format='"%s","%ci","%B"' $sha1 | tr \n' ''; echo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment