新建xx.sh 第一行写 #! 下面写执行的代码 #! echo "shell脚本启动了..." git status git add . ls echo "shell脚本结束了" 使用: //命令窗口: sh xx.sh