Created
May 10, 2021 09:34
-
-
Save jonmcewen/1bf7751f3f7ba25442e6d7414a9dc3ad to your computer and use it in GitHub Desktop.
pull all master
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
set -e | |
for dir in ../* | |
do | |
echo | |
echo "==============" | |
echo "$dir" | |
echo "==============" | |
git --git-dir=$dir/.git --work-tree=$PWD/$dir checkout master | |
git --git-dir=$dir/.git --work-tree=$PWD/$dir pull | |
git --git-dir=$dir/.git --work-tree=$PWD/$dir status -s | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment