Created
June 14, 2017 00:43
-
-
Save mauvehed/8190d9585f5e77d856bcd904a6333297 to your computer and use it in GitHub Desktop.
Small script to update a folder full of various git repos
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 | |
CWD=$(pwd) | |
for ii in "$CWD"/*; do | |
cd $ii | |
echo "" | |
echo "Updating $ii" | |
git checkout master | |
git pull | |
cd "$CWD" | |
done | |
echo "" | |
echo "Completed." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment