Skip to content

Instantly share code, notes, and snippets.

@drrobotnik
Created April 22, 2016 18:22
Show Gist options
  • Save drrobotnik/09a539f1e8ef705cc7110562baed575a to your computer and use it in GitHub Desktop.
Save drrobotnik/09a539f1e8ef705cc7110562baed575a to your computer and use it in GitHub Desktop.
git pull recursively from one level above
find . -maxdepth 1 -type d \( ! -name . \) -exec bash -c "cd '{}' && git rev-parse --verify staging && if [ -n "$?" ]; then ggl; fi" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment