美文网首页
shell脚本自动更新git

shell脚本自动更新git

作者: Morgan7 | 来源:发表于2019-06-04 10:20 被阅读0次

创建一个sh脚本vim test.sh

#! /bin/bash
date +%Y%m%d%H%M%S >> /usr/local/html/pull.log
cd /usr/local/html/shopApp && git pull >> /usr/local/html/pull.log 2>&1

crontab -e 设置定时任务

crontab教程
https://www.runoob.com/w3cnote/linux-crontab-tasks.html

相关文章

网友评论

      本文标题:shell脚本自动更新git

      本文链接:https://www.haomeiwen.com/subject/mxtvtctx.html