Skip to content

Instantly share code, notes, and snippets.

@robinhowlett
Created April 18, 2012 23:37
Show Gist options
  • Save robinhowlett/2417390 to your computer and use it in GitHub Desktop.
Save robinhowlett/2417390 to your computer and use it in GitHub Desktop.
"git pull origin master" all sub-directories in a directory
for i in $(ls -l . | awk '/^d/ {print $NF}'); do
cd $i;
echo "------------------------------------------------";
pwd;
echo "------------------------------------------------";
git pull origin master;
cd ..;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment