Skip to content

Commit 8fd1ee0

Browse files
authored
Merge pull request #44 from Ikaros-521/owner
新增强制拉取脚本
2 parents 80bc776 + 9fcbbf4 commit 8fd1ee0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@echo off
2+
chcp 65001
3+
where git > nul 2>&1
4+
if %errorlevel% neq 0 (
5+
echo Git 命令没找到,请先安装git客户端.
6+
pause
7+
exit /b
8+
)
9+
10+
git fetch --all
11+
git reset --hard origin/main
12+
echo 拉取完毕(如果没报错的话).
13+
pause

0 commit comments

Comments
 (0)