Last active
November 26, 2024 19:28
-
-
Save yanmhlv/708e2c6b90f45964bab7057af2e88ed1 to your computer and use it in GitHub Desktop.
git pull over all subdirectories(depth=1)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} pull origin master \; | |
# or | |
find . -type d -not -path './.git*' -maxdepth 1 \( ! -name . \) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment