windows git一键push脚本

前景:

每次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;
发布了55 篇原创文章 · 获赞 17 · 访问量 8万+

猜你喜欢

转载自blog.csdn.net/XuHang666/article/details/98052724
今日推荐