From d9a1bd852972c3a272263e2ada0f57678eb20007 Mon Sep 17 00:00:00 2001 From: sairate Date: Tue, 24 Sep 2024 18:27:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- copy.bat | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 copy.bat diff --git a/copy.bat b/copy.bat new file mode 100644 index 0000000..6e2e56d --- /dev/null +++ b/copy.bat @@ -0,0 +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