8000 Wiki自动更新脚本 · Issue #85 · holdyounger/ScopeBlog · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Wiki自动更新脚本 #85
Open
Open
@holdyounger

Description

@holdyounger

Wiki自动更新脚本

@echo off
:reInput

echo                                      Git自动更新脚本(输入序号选择命令)
echo ===================================================================================
echo 1 (:memo: 更新文档)
echo 2 (:fire:)
echo 3 (:wrench: 部署)
echo 4 (:bug:)
echo 5 (手动添加commit信息)
echo ===================================================================================
echo.

echo=
choice /c:12345 /m:"请输入Git 数字命令更新变动:"
if %errorlevel% == 1 set change=":memo: 更新文档"
if %errorlevel% == 2 set change=":bug:"
if %errorlevel% == 3 set change=":wrench: 部署"
if %errorlevel% == 4 set change=":bug:"
if %errorlevel% == 5 set /p change="请输入Commit信息:"

if %change%=="" (
cls
echo -------
echo 提交信息不能为空!
echo -------
goto reInput 
)

echo.

:: cd "D:\\wiki\\"

git pull

git add .

git commit -m %change%

git push

echo.
echo ===================================================================================
echo                                      更新完毕
echo.
title " update SUCCESS"
pause

blog link Wiki自动更新脚本

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0