Skip to content

Instantly share code, notes, and snippets.

@iamfat
Last active August 29, 2015 14:07
Show Gist options
  • Save iamfat/a4c3e01a5bf22f23c5db to your computer and use it in GitHub Desktop.
Save iamfat/a4c3e01a5bf22f23c5db to your computer and use it in GitHub Desktop.
Batch Git-Up
#!/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