-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.bat
More file actions
27 lines (26 loc) · 912 Bytes
/
Copy pathdeploy.bat
File metadata and controls
27 lines (26 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
REM 这是注释
REM set /p comment = "please input code change description"
REM 下面为复制dist目录下的到此脚本当前目录的批处理命令
chcp 65001
del index.html 404.html favicon.ico
rd static /s /q
copy ..\dist\index.html .
copy ..\dist\favicon.ico .
copy ..\dist\index.html 404.html
xcopy /e/y/i/f ..\dist\static .\static
:: 下面为提交代码到git仓库的批处理命令
:: git config --local --unset user.name
:: git config --local --unset user.email
git config --local user.name "Junior233"
git config --local user.email "3181074645@qq.com"
git pull
git add *
set /p comment="请输入代码变更说明:"
if "%comment%"=="" (
git commit -m "[%date% %time%] update"
echo "默认代码变更说明为[%date% %time%] update"
) else (
git commit -m "[%date% %time%] %comment%"
echo "自定义代码变更说明为%comment%"
)
git push