Skip to content

Instantly share code, notes, and snippets.

@RafaelBroseghini
Created November 26, 2018 03:09
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 RafaelBroseghini/4c05e3584e101740c12b7393ea308faa to your computer and use it in GitHub Desktop.
Save RafaelBroseghini/4c05e3584e101740c12b7393ea308faa to your computer and use it in GitHub Desktop.
Pull from all your git repos (run from home)
#!/bin/bash
for d in ./*/
do (cd "$d" &&
if [[ -d .git ]]; then
echo "Pulling from $d"
git pull
fi;
)
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment