Skip to content

Instantly share code, notes, and snippets.

@dezashibi
Created August 1, 2024 12:13
Show Gist options
  • Save dezashibi/b6665e740f224019dfaf006669da3718 to your computer and use it in GitHub Desktop.
Save dezashibi/b6665e740f224019dfaf006669da3718 to your computer and use it in GitHub Desktop.
Git pull in all the child folders (windows and linux)
for /d %%d in (*) do (cd %%d && if exist .git (git pull) && cd ..)
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