Last active
August 29, 2015 14:07
-
-
Save iamfat/a4c3e01a5bf22f23c5db to your computer and use it in GitHub Desktop.
Batch Git-Up
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 | |
CWD=$(pwd) | |
for REPO in `ls -d */.git` | |
do | |
DIR=`dirname $REPO` | |
echo "git -C $DIR up" | |
cd $DIR && git up | |
cd $CWD | |
chown -R 1000:staff $DIR | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment