Skip to content

Instantly share code, notes, and snippets.

@lvaylet
Last active July 11, 2020 17:13
Show Gist options
  • Save lvaylet/f935f9194d107f6c9a683a3962b880c9 to your computer and use it in GitHub Desktop.
Save lvaylet/f935f9194d107f6c9a683a3962b880c9 to your computer and use it in GitHub Desktop.
Recursive git pull
# When you want to update all of your git repositories with a single command
find . -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && git pull" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment