Skip to content

Instantly share code, notes, and snippets.

@itochan
Created July 17, 2012 16:28
Show Gist options
  • Save itochan/3130453 to your computer and use it in GitHub Desktop.
Save itochan/3130453 to your computer and use it in GitHub Desktop.
#!/bin/sh
# repoconfig.sh
# (C) itochan 2012
# MIT License
NAME=foo
[email protected]
SCRIPTDIR=`pwd`
for DIR in *; do
if [ -f $DIR/.git/config ]; then
cd $DIR
git config user.name $NAME
git config user.email $EMAIL
echo "done $DIR"
cd $SCRIPTDIR
else
echo "skipped $DIR"
fi
done
echo "Success!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment