Skip to content

Instantly share code, notes, and snippets.

@cmaitchison
Created June 15, 2012 00:23
Show Gist options
  • Save cmaitchison/2933814 to your computer and use it in GitHub Desktop.
Save cmaitchison/2933814 to your computer and use it in GitHub Desktop.
git-fetch all repos beneath current directory
for repo in $(find . -name .git -type d)
do
echo $repo
GIT_DIR=$repo git fetch --all --quiet;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment