Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jonmcewen/1bf7751f3f7ba25442e6d7414a9dc3ad to your computer and use it in GitHub Desktop.
Save jonmcewen/1bf7751f3f7ba25442e6d7414a9dc3ad to your computer and use it in GitHub Desktop.
pull all master
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