Skip to content

Instantly share code, notes, and snippets.

@54keesh
Last active August 15, 2025 05:51
Show Gist options
  • Save 54keesh/d70210da8d85170ad08cd834e237b9c5 to your computer and use it in GitHub Desktop.
Save 54keesh/d70210da8d85170ad08cd834e237b9c5 to your computer and use it in GitHub Desktop.
A script to group commit messages by date and log them on the console
#! /bin/bash
# This script groups commit messages by date for the current user and logs them on the console - ignores merge commits
FROM="2025-08-15";
TO="2025-08-15";
git log --no-merges --all --author="$(git config user.email)" --since="$FROM 00:00" --until="$TO 23:59" --date=short --pretty=format:'%ad%x09%s' | awk -F'\t' 'NR==1{d=$1; print d; print $2; next} $1!=d{print ""; d=$1; print d} {print $2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment