-
-
Save seocam/01f1dd0df35c63180ee7fa941cf69319 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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