From 44cba1ed8b24e593106159e1e0e4673ad286c0e6 Mon Sep 17 00:00:00 2001 From: yangyu Date: Mon, 23 Jul 2018 00:47:21 +0800 Subject: [PATCH] =?UTF-8?q?git=20pull=20=E5=86=B2=E7=AA=81=E8=A7=A3?= =?UTF-8?q?=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hexo/start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hexo/start.sh b/hexo/start.sh index 9c52185..18a95c6 100644 --- a/hexo/start.sh +++ b/hexo/start.sh @@ -16,8 +16,8 @@ hexo server --cwd /hexo -p 80 > /logs/hexo.log 2>&1 & while true; do cd /hexo; - git fetch --all; - git reset --hard origin/$BRANCH; + git fetch --all > /dev/null 2>&1 ; + git reset --hard origin/$BRANCH > /dev/null 2>&1 ; git pull > /dev/null 2>&1 ; sleep 5; done \ No newline at end of file