Skip to content

Instantly share code, notes, and snippets.

@kribblo
Last active October 31, 2018 14:14
Show Gist options
  • Save kribblo/91474a0bb3a21bb0be12b86769153936 to your computer and use it in GitHub Desktop.
Save kribblo/91474a0bb3a21bb0be12b86769153936 to your computer and use it in GitHub Desktop.
Shell script to pull all git repositories in one directory or workspace
#!/bin/sh
/usr/bin/find ~/Workspace -mindepth 1 -maxdepth 1 -type d -print -exec /usr/bin/git -C {} pull --ff-only --all \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment