@echo off echo "取消转义:%%" echo "文件路径:%~0" echo "输入参数:%~1 %~2 %~3 %~4 %~5 %~6 %~7 %~8 %~9" echo "文件路径:%~f0" echo "驱动器名:%~d0" echo "无驱路径:%~p0" echo "取文件名:%~n0" echo "取扩展名:%~x0" echo "缩写路径:%~s0" echo "文件属性:%~a0" echo "创建时间:%~t0" echo "文件大小:%~z0" echo "组合使用:%~dp0" pause
编写.bat ,git提交代码
cd %~n0 git status pause
git add . git commit -m "hardy" echo "已经commit" pause git push echo "已经上传" pause
git checkout dev git pull echo "已经拉取代码" git checkout hardy git merge dev echo "已经合并代码" pause git push echo "已经上传" git push origin hardy:dev pause
4