-
-
Save EvanDotPro/384252d5140caa96bcea to your computer and use it in GitHub Desktop.
This file contains 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 | |
# Define your workspace path here | |
WORKSPACE=/srv/dropbox | |
find $WORKSPACE -name '.git' -type d | while read line; do | |
cd "$line/../" | |
git fsck && git gc | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment