Skip to content

Instantly share code, notes, and snippets.

@tylerfowle
Created August 7, 2018 20:59
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 tylerfowle/79bfc4dc2d1bc94a874a060d9c66cb79 to your computer and use it in GitHub Desktop.
Save tylerfowle/79bfc4dc2d1bc94a874a060d9c66cb79 to your computer and use it in GitHub Desktop.
run a git command in multiple directories

ls | xargs -I{} git -C {} pull

To do it in parallel:

ls | xargs -P10 -I{} git -C {} pull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment