From f3b223f9f3252972b0abe6a954bdc18661b9a213 Mon Sep 17 00:00:00 2001 From: quli Date: Wed, 28 May 2025 13:33:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20copy.bat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- copy.bat | 56 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/copy.bat b/copy.bat index 6e2e56d..e367977 100644 --- a/copy.bat +++ b/copy.bat @@ -1,28 +1,28 @@ -@echo off - -chcp 65001 > nul - -echo 确保git为默认安装路径. -echo 首次运行脚本时,请配置 Git 用户名和邮箱. - -set /p git_username="请输入您的 Git 用户名: " -set /p git_email="请输入您的 Git 邮箱: " - -git config --global user.name "%git_username%" -git config --global user.email "%git_email%" - -set file_url="https://git.sairate.top/sairate/gitconfig/raw/branch/main/zh_cn.msg" - -certutil -urlcache -split -f %file_url% zh_cn.msg - -set target_path="C:\Program Files\Git\mingw64\share\git-gui\lib\msgs" - -if not exist %target_path% ( - mkdir %target_path% -) - -copy zh_cn.msg %target_path% - -echo 文件成功复制到目标路径:%target_path% - -timeout /t 3 /nobreak > nul +@echo off + +chcp 65001 > nul + +echo 确保git为默认安装路径. +echo 首次运行脚本时,请配置 Git 用户名和邮箱. + +set /p git_username="请输入您的 Git 用户名: " +set /p git_email="请输入您的 Git 邮箱: " + +git config --global user.name "%git_username%" +git config --global user.email "%git_email%" + +set file_url="https://gitea.hugemaker.com.cn/hugemaker2017/gitconfig/raw/branch/main/zh_cn.msg" + +certutil -urlcache -split -f %file_url% zh_cn.msg + +set target_path="C:\Program Files\Git\mingw64\share\git-gui\lib\msgs" + +if not exist %target_path% ( + mkdir %target_path% +) + +copy zh_cn.msg %target_path% + +echo 文件成功复制到目标路径:%target_path% + +timeout /t 3 /nobreak > nul