Skip to content

Instantly share code, notes, and snippets.

@mauvehed
Created June 14, 2017 00:43
Show Gist options
  • Save mauvehed/8190d9585f5e77d856bcd904a6333297 to your computer and use it in GitHub Desktop.
Save mauvehed/8190d9585f5e77d856bcd904a6333297 to your computer and use it in GitHub Desktop.
Small script to update a folder full of various git repos
#!/bin/bash
CWD=$(pwd)
for ii in "$CWD"/*; do
cd $ii
echo ""
echo "Updating $ii"
git checkout master
git pull
cd "$CWD"
done
echo ""
echo "Completed."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment