Skip to content

Instantly share code, notes, and snippets.

@scicco
Created October 11, 2012 18:21
Show Gist options
  • Save scicco/3874459 to your computer and use it in GitHub Desktop.
Save scicco/3874459 to your computer and use it in GitHub Desktop.
git pull in all sub folder from current path
#!/bin/bash
here=$PWD
echo "**********************************************"
for folder in ./*
do
echo "pulling from $folder"
echo "**********************************************"
cd "$here" && cd "$folder" && git pull origin
echo "**********************************************"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment