From a76a7d41503164145c822f302b2b3d41949e87df Mon Sep 17 00:00:00 2001 From: hailan1024 Date: Wed, 30 Jul 2025 17:00:52 +0800 Subject: [PATCH] =?UTF-8?q?:hammer:=20=E6=9B=B4=E6=96=B0=E6=96=87=E4=BB=B6?= =?UTF-8?q?=20git-pull.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hailan1024 --- git-pull.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/git-pull.sh b/git-pull.sh index 89d34433..4648c10e 100644 --- a/git-pull.sh +++ b/git-pull.sh @@ -1,5 +1,9 @@ #!/bin/bash +# 清空 git clean -df +# 切换到 HEAD git reset --hard HEAD +# 拉取远程 git pull +# 查看日志 git log -n 1