Skip to content

Instantly share code, notes, and snippets.

@opi
Created October 5, 2016 12:11
Show Gist options
  • Save opi/118c8cfb3e82921985b2fc4adc84d649 to your computer and use it in GitHub Desktop.
Save opi/118c8cfb3e82921985b2fc4adc84d649 to your computer and use it in GitHub Desktop.
Git log day-by-day, with hours
#!/bin/bash
# Generates changelog day by day
echo "CHANGELOG"
echo ----------------------
git log --no-merges --format="%cd" --date=short | sort -u -r | while read DATE ; do
echo
echo [$DATE]
GIT_PAGER=cat git log --no-merges --format=" * %aD %s" --date="local" --since="$DATE 00:00:00" --until="$DATE 24:00:00"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment