This answer is for linux command line. I need the same for Windows command line. I created the following using this, but my code does not work.
for /D /r %i in (*.*) do (cd %i && echo %i && git pull && cd ..)
Update
From @SevenEleven's answer and @kostix's comment the following worked.
for /D %%i in (.\*) do (cd "%%i" && git pull && cd..)
or
for /D %%i in (*) do (cd "%%i" & git pull && cd..)