Skip to content

Instantly share code, notes, and snippets.

@ecancino
Created September 22, 2014 21:58
Show Gist options
  • Select an option

  • Save ecancino/8e45e88eb77ea962f6a0 to your computer and use it in GitHub Desktop.

Select an option

Save ecancino/8e45e88eb77ea962f6a0 to your computer and use it in GitHub Desktop.
update_all_repos.sh
#/usr/bin/bash
find ~/Repos -type d -maxdepth 1 \
-exec bash -c "cd '{}' && if [ -d \$PWD'/.git' ]; then \
echo 'Updating ' \$PWD; git pull origin master 2>/dev/null; fi" \
2>/dev/null \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment