Skip to content

Instantly share code, notes, and snippets.

@imom39a
Created April 18, 2017 17:11
Show Gist options
  • Save imom39a/ee1d0736891c78109c05368136628e24 to your computer and use it in GitHub Desktop.
Save imom39a/ee1d0736891c78109c05368136628e24 to your computer and use it in GitHub Desktop.
#!/bin/bash
CUR_DIR=$(pwd)
echo "\n\Pulling in latest changes for all module...\n"
for i in $(find . -name ".git" | cut -c 3-); do
echo "";
echo "current directory"+$i;
cd "$i";
cd ..;
git pull origin dev;
cd $CUR_DIR
done
echo "Pull completed"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment