Skip to content

Instantly share code, notes, and snippets.

@reyronald
Created October 5, 2025 02:24
Show Gist options
  • Select an option

  • Save reyronald/fbd2047863ca4f13ebaae31458ce9e8b to your computer and use it in GitHub Desktop.

Select an option

Save reyronald/fbd2047863ca4f13ebaae31458ce9e8b to your computer and use it in GitHub Desktop.
@echo off
setlocal enabledelayedexpansion
echo Starting git pull for all directories...
echo.
for /d %%i in (*) do (
if exist "%%i\.git" (
echo Pulling updates for: %%i
cd "%%i"
git pull
echo.
cd ..
) else (
echo Skipping %%i - not a git repository
)
)
echo.
echo Git pull completed for all repositories.
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment