autopull.sh 307 Bytes
Newer Older
吴贤德's avatar
吴贤德 committed
1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash
:<<!
crontab -e  : 添加定时任务(5分钟拉取一次)
*/5 * * * * /soooner/hotel/Scripts/autopull.sh > /dev/null 2>&1
!
cd /soooner/hotel
git fetch --all
git reset --hard origin/develop
git pull origin develop
timepull=`date '+%Y-%m-%d %H:%M:%S'`
echo "$timepull pull ok!" >> ./autopull.log