Last active
August 29, 2015 14:04
-
-
Save ironsmile/f4885bc4010c0c896564 to your computer and use it in GitHub Desktop.
Pull from all git repositories
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 | |
cd $(dirname `readlink -f $0`) | |
git_dirs=`find . -maxdepth 1 -type d | grep -v -E '^\.$'` | |
for git_dir in $git_dirs | |
do | |
echo "Entering $git_dir" | |
cd "$git_dir" | |
git pull | |
cd - | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment