Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@roppa
Created December 12, 2018 16:33
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 roppa/959e2b5bd53a4a718cf00650869ccf94 to your computer and use it in GitHub Desktop.
Save roppa/959e2b5bd53a4a718cf00650869ccf94 to your computer and use it in GitHub Desktop.
Git pull origin master in folder containing many git repos
#!/bin/bash
for f in $PWD/*;
do
[ -d $f ]
cd "$f"
echo $f
git pull origin master
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment