Skip to content

Instantly share code, notes, and snippets.

@sachitsac
Last active August 29, 2015 14:08
Show Gist options
  • Save sachitsac/49d42d5a6ef7d158d1a0 to your computer and use it in GitHub Desktop.
Save sachitsac/49d42d5a6ef7d158d1a0 to your computer and use it in GitHub Desktop.
GIT Change log generator for a provided period
#!/bin/bash
START=$1
END=$2
if [[ "$#" -ne 2 ]]; then
echo -e "Proved a start and end time using this fromat: YYYY-MM-D";
exit;
fi
git log --after "$START" --before "$END" --pretty=format:"%H,%an<%ae>,%cd,%s" --date=short
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment