前景:
每次git push的时候都要输入重复的命令,无形中也浪费时间。直接来一个键push.bat脚本省时省力。
bat代码如下:
echo "Start submitting code to the local repository"
echo "The current directory is:%cd%"
git add *
echo;
echo "Commit the changes to the local repository"
set now=%date% %time%
echo %now%
git commit -m "%now%"
echo;
echo "Commit the changes to the remote git server"
git push
echo;
echo "Batch execution complete!"
echo;