Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save slopeofhope81/ec61316e96cf8669de846739595bb91b to your computer and use it in GitHub Desktop.

Select an option

Save slopeofhope81/ec61316e96cf8669de846739595bb91b to your computer and use it in GitHub Desktop.
pulling all submodules
#!/bin/bash
git pull
for app in $(ls apps); do
echo $app
cd apps/$app
branch=$(git symbolic-ref --short -q HEAD)
if [ $branch = "master" ] ; then
git pull
fi
cd -
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment