Skip to content

Instantly share code, notes, and snippets.

@rpromyshlennikov
Created May 13, 2019 21:41
Show Gist options
  • Save rpromyshlennikov/3a1905a09b722534af2121dce60abe1a to your computer and use it in GitHub Desktop.
Save rpromyshlennikov/3a1905a09b722534af2121dce60abe1a to your computer and use it in GitHub Desktop.
Fetch all repos in directory (recursively by 2 levels)
find /home/user/work/ -mindepth 1 -maxdepth 2 -type d -exec git -C {} fetch --all \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment