代码拉取完成,页面将自动刷新
@cd /d %~dp0
@echo off
color 8f
echo.
echo Title: Git Instruction Set
echo .
echo Author: Tejin-Ning
echo.
echo File coding: ANSI (Transcoding can be messy)
echo.
echo Instructions:
echo Put the script in the Git repository,
echo double-click to run it, and follow the prompts.
echo.
echo Current file path:
echo %~dp0
echo.
echo Warning: Make sure this is the correct storage path,
echo otherwise change the instruction set to run on the correct path.
echo.
echo.
echo ############### Git Instruction List #################
echo ------------ Input number 0: git clone ---------------
echo ------------ Input number 1: git fetch ---------------
echo ------------ Input number 2: git pull ---------------
echo ------------ Input number 3: git add . ---------------
echo ------------ Input number 4: git commit -m "message" -
echo ------------ Input number 5: git push origin master --
echo ------------ More to come... -------------------------
echo ------------ Other instructions end the task. --------
echo ------------------------------------------------------
echo.
:again
echo Select the Instruction to execute:
set /p num=
setlocal EnableDelayedExpansion
if "%num%"=="0" (
set /p href=Input submission href:
git clone "!href!"
echo.
echo. --- Instruction "%num%" is done.
echo.
echo.
goto again
)
if "%num%"=="1" (
git fetch
echo.
echo. --- Instruction "%num%" is done.
echo.
echo.
goto again
)
if "%num%"=="2" (
git pull
echo.
echo. --- Instruction "%num%" is done.
echo.
echo.
goto again
)
if "%num%"=="3" (
git add .
echo.
echo. --- Instruction "%num%" is done.
echo.
echo.
goto again
)
setlocal EnableDelayedExpansion
if "%num%"=="4" (
set /p message=Input submission remarks:
git commit -m "!message!"
echo.
echo. --- Instruction "%num%" is done.
echo.
echo.
goto again
)
if "%num%"=="5" (
git push origin master
echo.
echo. --- Instruction "%num%" is done.
echo.
echo.
goto again
)
echo.
echo When the "%num%" instruction is entered,
echo the batch rolls out automatically.
echo.
echo Any key, close instruction set.
echo.
pause
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。