Skip to content

Instantly share code, notes, and snippets.

@ProjectInitiative
Last active May 23, 2019 04:31
Show Gist options
  • Save ProjectInitiative/0fff7df24b41bcea23d8d48cc4d06820 to your computer and use it in GitHub Desktop.
Save ProjectInitiative/0fff7df24b41bcea23d8d48cc4d06820 to your computer and use it in GitHub Desktop.
Pull all immediate Git repo children in the current directory
#!/usr/bin/env bash
for D in `find . -maxdepth 1 -mindepth 1 -type d`
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