2-1.强制更新至主线版本(得先安装git).bat 349 B

12345678910111213141516
  1. @echo off
  2. chcp 65001
  3. where git > nul 2>&1
  4. if %errorlevel% neq 0 (
  5. echo Git 命令没找到,请先安装git客户端.
  6. pause
  7. exit /b
  8. )
  9. echo 先执行一个备份脚本,免得你配置丢失了捏
  10. Miniconda3\python.exe bak_config_data.py
  11. git fetch --all
  12. git reset --hard origin/main
  13. echo 拉取完毕(如果没报错的话).
  14. pause