Skip to content

Instantly share code, notes, and snippets.

@mkjasinski
Created April 19, 2016 13:40
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 mkjasinski/ce4bf71bc5215469aceabf007b1a3316 to your computer and use it in GitHub Desktop.
Save mkjasinski/ce4bf71bc5215469aceabf007b1a3316 to your computer and use it in GitHub Desktop.
[shell][git] fetch all repos
#!/bin/bash
#
for project in `ls -d */`; do
cd ./$project
if git s &>/dev/null; then
pwd
git s 2>/dev/null
git f 2>/dev/null
fi
cd ..
done;
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment