Skip to content

Instantly share code, notes, and snippets.

@darakeon
Last active March 2, 2021 23:57
Show Gist options
  • Save darakeon/7fcdf4ddadbe04abc1d672a920fdc08d to your computer and use it in GitHub Desktop.
Save darakeon/7fcdf4ddadbe04abc1d672a920fdc08d to your computer and use it in GitHub Desktop.
@echo off
set current=%cd%\
set folder=%1
set batpath=%2
cd %folder% > NUL
if "%folder%" neq "" (
set current=%current%%folder%\
)
if exist %current%.git (
echo.
echo %folder%
git status -s -b
) else (
for /d %%d in (%current%*) do (
call %batpath%git-check.bat %%~nd ..\%batpath%
)
)
if "%1" neq "" (
cd ..
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment