38 lines
817 B
Batchfile
38 lines
817 B
Batchfile
@echo off
|
|
title Git Working
|
|
goto selectAll
|
|
|
|
:selectAll
|
|
echo ---------------------------------------------------
|
|
set n=0
|
|
echo 1.第一次取專案設定所需子儲存庫
|
|
echo 2.所有子儲存庫呼叫小烏龜PULL視窗
|
|
echo *注意此儲存庫也會跟著呼叫.沒有錯誤會自動關閉
|
|
|
|
set/p n= 請選擇:
|
|
|
|
if "%n%"=="1" ( goto change )
|
|
|
|
if "%n%"=="2" ( goto childupdate )
|
|
|
|
goto exit
|
|
|
|
:change
|
|
echo 第一次取專案設定所需子儲存庫
|
|
echo.
|
|
cd src/shared
|
|
git clone --progress -v https://jianmiau.ddns.net/GuessWhoIAm/Protocols.git protocols
|
|
cd ..\..
|
|
echo 結束
|
|
goto selectAll
|
|
|
|
:childupdate
|
|
echo 所有子儲存庫呼叫小烏龜PULL視窗
|
|
TortoiseGitProc -command:pull /closeonend:2
|
|
echo main done.
|
|
cd src/shared/protocols
|
|
TortoiseGitProc -command:pull /closeonend:2
|
|
echo path:src\shared\protocols done.
|
|
cd ..\..\..
|
|
echo 結束
|
|
goto selectAll |