20 lines
308 B
Batchfile
20 lines
308 B
Batchfile
@echo off
|
|
|
|
set BASE=%CD%
|
|
for /R /D %%G in (*) do if exist %%G\.git (
|
|
cd %%G
|
|
set RESULT=
|
|
for /f %%i in ('git status -s') do (set RESULT=%%i)
|
|
if defined RESULT (
|
|
git add .
|
|
git commit %*
|
|
set ANY=1
|
|
)
|
|
cd %BASE%
|
|
)
|
|
|
|
if defined ANY (
|
|
git add .
|
|
git commit %*
|
|
)
|