-
-
Save oztune/2845244 to your computer and use it in GitHub Desktop.
Github Pull Everything Script - You must be in the folder that contains all of the projects to be updated, ex: cd C:/Projects/
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 | |
for file in * | |
do | |
if [ -d $file ] | |
then | |
cd $file | |
echo Pulling `pwd` `git branch 2>/dev/null | grep -e '^*' | sed -E 's/^\* (.+)$/(\1) /'` | |
git pull | |
cd ../ | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment