Skip to content

Instantly share code, notes, and snippets.

@timvw
Created January 20, 2014 10:12
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 timvw/8517781 to your computer and use it in GitHub Desktop.
Save timvw/8517781 to your computer and use it in GitHub Desktop.
Call git fetch for each folder in /c/src/Git
#!/bin/bash
find /c/src/Git -type d -mindepth 1 -maxdepth 1 -exec git --work-tree={} --git-dir={}/.git fetch \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment