@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