From 1c1ecd33b880b75afbe4cc88f1c9305a24a7aded Mon Sep 17 00:00:00 2001 From: "iyuu.cn" <367013672@qq.com> Date: Wed, 25 Mar 2020 17:44:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E5=BD=93=E5=89=8D=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E8=B7=AF=E5=BE=84=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- git_pull.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git_pull.sh b/git_pull.sh index 30c3fd7..abe607c 100644 --- a/git_pull.sh +++ b/git_pull.sh @@ -1,5 +1,7 @@ #!/bin/sh #脚本功能:从git拉取最新代码,然后执行辅种 +pwddir=$(cd $(dirname $0); pwd) +echo $pwddir cd $(dirname $0) git fetch --all git reset --hard origin/master