每次要写很多git命令很麻烦,所以想用bat来代替,但是执行完git push后需要输入用户名及密码,这个要怎么让bat文件自动填充呢?

我目前的bat文件内容是这样的:
cd 要提交的项目目录
git pull
git add .
git commit -m "update"
git push -u origin master
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号