This commit is contained in:
Luk Lu
2022-01-09 21:59:30 +08:00
parent 813c2f86ad
commit a9b8c1c863
7 changed files with 49 additions and 42 deletions

View File

@@ -28,18 +28,18 @@ echo;
for /d %%o in (*) do (
@REM windows的链接文件会造成路径错误从而终止该循环从而导致下一轮乃至所有循环的工作目录错误。因此要过滤掉 .vscode 这个符号链接目录。
if not %%o == .vscode (
@REM 每次 git pull 都会造成 .git 目录下某些文件变化,导致云端不断自动同步。因此过滤掉 *@cloud 的目录不做更新。
@REM 每次 git pull 都会造成 .git 目录下某些文件变化,导致云端不断自动同步。因此过滤掉云盘的目录不做更新。
echo %%o | findstr "~" >NUL && (
echo !!!!!!!! omitting [%BASEDIR%\%%o] !!!!!!!!
echo;
) || (
echo -------- entering [%BASEDIR%\%%o] --------
echo ======== entering [%BASEDIR%\%%o] ========
echo;
pushd %%o
for /d %%g in (*) do (
if exist %%g\.git (
pushd %%g
echo git pulling [%BASEDIR%\%%o\%%g]
echo ---- git pulling [%BASEDIR%\%%o\%%g] ----
git pull --all
echo;
popd