Skip to content

Instantly share code, notes, and snippets.

@therako
Last active April 13, 2018 02:44
Show Gist options
  • Save therako/0e55714d563ac71900e8b7e7583b5e3c to your computer and use it in GitHub Desktop.
Save therako/0e55714d563ac71900e8b7e7583b5e3c to your computer and use it in GitHub Desktop.
Update all repos under the base directory
#!/bin/bash
for folder in $(ls);
do
echo ""
echo "Updating repo: ${folder}"
pushd ${folder}
git pull -r
popd
done
echo "Completed!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment