Skip to content

Instantly share code, notes, and snippets.

@nitriques
Created March 7, 2014 21:45
Show Gist options
  • Save nitriques/9420854 to your computer and use it in GitHub Desktop.
Save nitriques/9420854 to your computer and use it in GitHub Desktop.
Getting all logs from all git repos, in csv
rm -rf _gitlogs
mkdir _gitlogs
for D in *; do
if [ -d "${D}" ]; then
cd "${D}";
if [ -d ".git" ]; then
echo Date,Commit,Author,Projet,Comments > ../_gitlogs/"${D}.csv";
git log --format="%ai,%h,%an,${D},%s" --date=local >> ../_gitlogs/"${D}.csv";
fi
cd ..;
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment