更新了bat

This commit is contained in:
XTer 2024-03-11 23:50:47 +08:00
parent 5e32df6006
commit 18a805ce56
2 changed files with 9 additions and 8 deletions

View File

@ -3,13 +3,13 @@ CHCP 65001
setlocal
:: 设置需要同步的本地仓库路径
echo 设置需要同步的本地仓库路径
set REPO_PATH=../
:: 切换到仓库目录
echo 切换到仓库目录
cd /d %REPO_PATH%
:: 设置 PortableGit 的路径
echo 设置 PortableGit 的路径
set GIT_PATH=PortableGit/bin
echo 更新所有子模块

View File

@ -3,22 +3,23 @@ CHCP 65001
setlocal
:: 设置需要同步的本地仓库路径
echo 设置需要同步的本地仓库路径
set REPO_PATH=../
:: 切换到仓库目录
echo 切换到仓库目录
cd /d %REPO_PATH%
:: 设置 PortableGit 的路径
echo 设置 PortableGit 的路径
set GIT_PATH=PortableGit/bin
echo 撤销之前的强制换源
"%GIT_PATH%\git.exe" config --global --unset url."https://gitclone.com/".insteadOf
echo 强制覆盖所有子模块
"%GIT_PATH%\git.exe" submodule update --init --recursive
"%GIT_PATH%\git.exe" submodule foreach --recursive "git fetch origin plug_in && git reset --hard origin/plug_in"
echo 执行 git pull 更新本地仓库
echo 强制覆盖本地仓库
"%GIT_PATH%\git.exe" fetch https://github.com/X-T-E-R/GPT-SoVITS-Inference.git main
"%GIT_PATH%\git.exe" reset --hard FETCH_HEAD