Skip to content

Instantly share code, notes, and snippets.

@rigtorp
Last active June 25, 2019 08:54
Show Gist options
  • Save rigtorp/8bfc09e3934aff9f58badaa262fb27f7 to your computer and use it in GitHub Desktop.
Save rigtorp/8bfc09e3934aff9f58badaa262fb27f7 to your computer and use it in GitHub Desktop.
Fetch all remotes for all git repositories in directory

Fetch all remotes for all git repositories in directory (recursively)

$ find . -name .git -type d -execdir git --git-dir '{}' fetch --all ';'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment