Created
August 1, 2024 12:13
-
-
Save dezashibi/b6665e740f224019dfaf006669da3718 to your computer and use it in GitHub Desktop.
Git pull in all the child folders (windows and linux)
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
for /d %%d in (*) do (cd %%d && if exist .git (git pull) && cd ..) |
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
for dir in */ ; do | |
(cd "$dir" && [ -d .git ] && git pull && cd ..) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment