Skip to content

Instantly share code, notes, and snippets.

@chadly
chadly / export-history.sh
Created August 28, 2019 22:30
Export commit history for specific date range for all repositories in a directory
for d in */ ; do
cd $d
git log --since 2015-03-01 --until 2016-06-30 --reverse --pretty=format:https://github.com/civicsource/${d}commit/%H,%an,%ad,\"%s\" --date=iso > ../${d::-1}.csv
cd ..
done