Skip to content

Instantly share code, notes, and snippets.

@josephfinlayson
Created July 26, 2013 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josephfinlayson/6089286 to your computer and use it in GitHub Desktop.
Save josephfinlayson/6089286 to your computer and use it in GitHub Desktop.
Shell script to pull updates from git for all subfolders
files=`ls $1`
for file in $files; do
if [ -d $file ];then
cd $file
git pull
git checkout rel-15
cd ..
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment