Skip to content

Instantly share code, notes, and snippets.

@yanshengjia
Created August 1, 2018 03:02
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 yanshengjia/8d2538f746170d7047c240c837d3afd1 to your computer and use it in GitHub Desktop.
Save yanshengjia/8d2538f746170d7047c240c837d3afd1 to your computer and use it in GitHub Desktop.
Enter each folder and git pull
#!/bin/bash
for f in /Users/yanshengjia/GitHub/*;
do
[ -d $f ] && cd "$f" && echo Entering into $f and git pull
git pull
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment