Skip to content

Instantly share code, notes, and snippets.

@w0rldart
Last active August 29, 2017 12:17
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 w0rldart/49e4c262e9dab11b9acc to your computer and use it in GitHub Desktop.
Save w0rldart/49e4c262e9dab11b9acc to your computer and use it in GitHub Desktop.
Update all git repositories in a directory
for dir in `ls -d */`; do BASE_PATH=`pwd`; DIR_PATH=$BASE_PATH/$dir; cd $DIR_PATH; git pull; cd ../ ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment