crontab是linux/MaxOS下经常使用的实现定时任务的指令,可是在crontab中使用git push等须要受权的api时会发生无效而且没有任何log反馈的状况,没有执行push。解决方案是在crontab中使用push等指令时强制设置username和pwdlinux
例如git
git push https://username:password@github.com/username/repository.git master