2 Star 1 Fork 0

Tjn/project-booksell

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
_git_cmd_root.bat 2.06 KB
一键复制 编辑 原始数据 按行查看 历史
Tjn 提交于 2021-07-01 08:59 . updata-readme
@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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/iron-rope/project-booksell.git
git@gitee.com:iron-rope/project-booksell.git
iron-rope
project-booksell
project-booksell
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385