From 80ca5e9690bc786598a8e2c9e0a42bb4c4633712 Mon Sep 17 00:00:00 2001 From: "iyuu.cn" <367013672@qq.com> Date: Wed, 26 Feb 2020 17:33:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0git=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.sample.php | 2 +- git自动更新.cmd | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 git自动更新.cmd diff --git a/config/config.sample.php b/config/config.sample.php index a85fed6..b9c220c 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -134,7 +134,7 @@ return array( 'cookie' => '', // 如果需要自动辅种,必须配置 'passkey' => '', - 'id' => 0, // 用户ID + 'id' => 0, // 用户ID(不是用户名) 'workingMode' => 0, 'watch' => '/root/downloads', 'filter' => array( diff --git a/git自动更新.cmd b/git自动更新.cmd new file mode 100644 index 0000000..aff09c0 --- /dev/null +++ b/git自动更新.cmd @@ -0,0 +1,5 @@ +@echo off +chcp 65001 +git fetch --all +git reset --hard origin/master +git pull \ No newline at end of file