Skip to content

Instantly share code, notes, and snippets.

@timvw
Created January 20, 2014 10:12
Show Gist options
  • 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