Skip to content

Instantly share code, notes, and snippets.

@juanitobebe
Last active October 27, 2016 23:42
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 juanitobebe/c72a6d09580678028d164ce0273fbb20 to your computer and use it in GitHub Desktop.
Save juanitobebe/c72a6d09580678028d164ce0273fbb20 to your computer and use it in GitHub Desktop.
Update repos
#!/usr/bin/env bash
for d in */; do
echo $d
repo="${PWD}/${d}"
(
{
cd $repo;
git checkout master;
git pull;
}
)
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment