GPT-SoVITS/0 一键启动脚本/999 强制更新:会覆盖你的设置,慎用,和0功能类似.bat
2024-03-07 18:38:05 +08:00

27 lines
630 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

CHCP 65001
@echo off
setlocal
:: 设置 PortableGit 的路径
set GIT_PATH=../PortableGit/bin
:: 设置需要同步的本地仓库路径
set REPO_PATH=./
:: 添加 PortableGit 到 PATH以便可以执行 git 命令
set PATH=%GIT_PATH%;%PATH%
:: 切换到仓库目录
cd /d %REPO_PATH%
echo 强制覆盖所有子模块
git submodule update --init --recursive
git submodule foreach --recursive "git fetch origin plug_in && git reset --hard origin/plug_in"
echo 执行 git pull 更新本地仓库
git fetch https://github.com/X-T-E-R/GPT-SoVITS-Inference.git main
git reset --hard FETCH_HEAD
echo.
echo 更新完成!
pause