Created
November 26, 2018 03:09
-
-
Save RafaelBroseghini/4c05e3584e101740c12b7393ea308faa to your computer and use it in GitHub Desktop.
Pull from all your git repos (run from home)
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 d in ./*/ | |
do (cd "$d" && | |
if [[ -d .git ]]; then | |
echo "Pulling from $d" | |
git pull | |
fi; | |
) | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment