更新 copy.bat
This commit is contained in:
parent
1458a9d5be
commit
f3b223f9f3
56
copy.bat
56
copy.bat
@ -1,28 +1,28 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
chcp 65001 > nul
|
chcp 65001 > nul
|
||||||
|
|
||||||
echo 确保git为默认安装路径.
|
echo 确保git为默认安装路径.
|
||||||
echo 首次运行脚本时,请配置 Git 用户名和邮箱.
|
echo 首次运行脚本时,请配置 Git 用户名和邮箱.
|
||||||
|
|
||||||
set /p git_username="请输入您的 Git 用户名: "
|
set /p git_username="请输入您的 Git 用户名: "
|
||||||
set /p git_email="请输入您的 Git 邮箱: "
|
set /p git_email="请输入您的 Git 邮箱: "
|
||||||
|
|
||||||
git config --global user.name "%git_username%"
|
git config --global user.name "%git_username%"
|
||||||
git config --global user.email "%git_email%"
|
git config --global user.email "%git_email%"
|
||||||
|
|
||||||
set file_url="https://git.sairate.top/sairate/gitconfig/raw/branch/main/zh_cn.msg"
|
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
|
certutil -urlcache -split -f %file_url% zh_cn.msg
|
||||||
|
|
||||||
set target_path="C:\Program Files\Git\mingw64\share\git-gui\lib\msgs"
|
set target_path="C:\Program Files\Git\mingw64\share\git-gui\lib\msgs"
|
||||||
|
|
||||||
if not exist %target_path% (
|
if not exist %target_path% (
|
||||||
mkdir %target_path%
|
mkdir %target_path%
|
||||||
)
|
)
|
||||||
|
|
||||||
copy zh_cn.msg %target_path%
|
copy zh_cn.msg %target_path%
|
||||||
|
|
||||||
echo 文件成功复制到目标路径:%target_path%
|
echo 文件成功复制到目标路径:%target_path%
|
||||||
|
|
||||||
timeout /t 3 /nobreak > nul
|
timeout /t 3 /nobreak > nul
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user