Skip to content

Instantly share code, notes, and snippets.

@dmc-at-work
Created April 5, 2019 07:33
Show Gist options
  • Save dmc-at-work/43ebf27bd1e4496ac7ae230fb60893db to your computer and use it in GitHub Desktop.
Save dmc-at-work/43ebf27bd1e4496ac7ae230fb60893db to your computer and use it in GitHub Desktop.
Multi-Repo Git Pull
#!/bin/bash
#
#
#
#
# for f in * ; do
# if [ -d "$f" ] ; then
# # $f is a directory
# echo "directory: $f"
# fi
# done
#
for d in */ ; do
echo "$d"
cd $d
git pull
cd ..
done
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment