Skip to content

Instantly share code, notes, and snippets.

@anonomis
Created May 9, 2011 14:05
Show Gist options
  • Select an option

  • Save anonomis/962568 to your computer and use it in GitHub Desktop.

Select an option

Save anonomis/962568 to your computer and use it in GitHub Desktop.
git pull all directories from a parent directory
#!/bin/bash
for A in *;
do
if [ -d $A ];
then cd $A;
git pull;
cd ..;
fi;
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment