Skip to content

Instantly share code, notes, and snippets.

@seocam
Forked from cravefoodbr/inspect-all.sh
Last active August 9, 2016 20:45
Show Gist options
  • Save seocam/01f1dd0df35c63180ee7fa941cf69319 to your computer and use it in GitHub Desktop.
Save seocam/01f1dd0df35c63180ee7fa941cf69319 to your computer and use it in GitHub Desktop.
#!/bin/bash
REPOS="repo1 repo2 repo3"
BASE_DIR="/Users/user/repo_home" # Where you repos are
OUTPUT_FILE="/Users/user/Documents/git-stats.html"
for repo in $REPOS; do
cd "$BASE_DIR/$repo"
echo "Updating repo $repo"
git fetch
git pull
cd "$BASE_DIR"
done
echo "Getting git stats"
PYTHONIOENCODING='utf-8' gitinspector --format=html --timeline $REPOS > /tmp/git.html
mv /tmp/git.html $OUTPUT_FILE
echo "Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment