Development machine: Win10
Win + R: Input: taskschd.msc
Enter to open the timing task window
Start a new task
The main points:
- specified time
- Specifies the batch file to be executed
git-pull.bat
d:
cd d:/your-project-working-directory
git pull
REM 多个项目的话重复上面操作
git-push.bat
d:
cd d:/your-project-working-directory
REM 可以提前自己commit完,只用脚本自动执行push
REM 因可能每天的comment都不一样,只能改批处理文件 或改启动参数
git add .
git commit ''comment-cotent“
git push