Skip to content

Instantly share code, notes, and snippets.

@usmansaleem
Created May 30, 2017 21:12
Show Gist options
  • Save usmansaleem/b72aebc3c07428d96cdb3f5d49f0290d to your computer and use it in GitHub Desktop.
Save usmansaleem/b72aebc3c07428d96cdb3f5d49f0290d to your computer and use it in GitHub Desktop.
git alias for working with multiple repos from parent directory. Usage 'git all pull'.
[alias]
all = "!sh -c \"find . -mindepth 1 -maxdepth 1 -type d -print -exec git -C {} $1 \\;\" -"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment