Skip to content

Instantly share code, notes, and snippets.

@yanmhlv
Created April 7, 2022 09:53
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 yanmhlv/708e2c6b90f45964bab7057af2e88ed1 to your computer and use it in GitHub Desktop.
Save yanmhlv/708e2c6b90f45964bab7057af2e88ed1 to your computer and use it in GitHub Desktop.
git pull over all subdirectories(depth=1)
find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} pull origin master \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment