Skip to content

Instantly share code, notes, and snippets.

@r3b
Created December 7, 2018 15:17
Show Gist options
  • Save r3b/e2ea4c6015722994333852a7ba87e631 to your computer and use it in GitHub Desktop.
Save r3b/e2ea4c6015722994333852a7ba87e631 to your computer and use it in GitHub Desktop.
iterate over directories and perform git pull on each
for i in $(find . -type d -name '.git');
do dirname $i;
echo "$(
cd $(dirname $i);
git pull;
cd -
)";
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment