This commit is contained in:
6
justfile
6
justfile
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user