改进 amend
All checks were successful
ci/woodpecker/push/ci-test Pipeline was successful

This commit is contained in:
2026-01-28 14:10:09 +08:00
parent 830310d8e5
commit 5a39d2e185

View File

@@ -16,9 +16,9 @@ machine_ip := `ip -4 addr show scope global | grep -oP '(?<=inet\s)\d+(\.\d+){3}
git reset --soft HEAD~1 && echo "✅ 空提交已删除"; \
fi
# 将所有文件 amend
amend argument="":
cd "{{root}}" && git add . && git commit --amend {{argument}}
# 将所有文件 amend,若取消则将暂存区文件移出
@amend:
cd "{{root}}" && git add . && git commit --amend || (git restore --staged . && false)
# 统计代码量
cloc: