哈尔滨市网站建设_网站建设公司_改版升级_seo优化
2025/12/24 15:03:46 网站建设 项目流程
Option Command Scope Risk Level Use Case
X git reset --hard HEAD && git clean -fd Working tree + staging + untracked ⭐⭐⭐⭐⭐ Completely wipe all local changes
u git checkout -- . Working tree (unstaged only) ⭐⭐ Discard unstaged changes
c git clean -fd Untracked files/dirs only ⭐⭐⭐ Clean build artifacts, logs, etc.
S git reset HEAD Staging area only Unstage files (keep working changes)
s git reset --soft HEAD Commit history only ⭐⭐ Amend last commit (keep staged changes)
m git reset --mixed HEAD (or git reset) Commit history + staging ⭐⭐ Redo commit from scratch (keep work)
h git reset --hard HEAD Working tree + staging + commit ⭐⭐⭐⭐⭐ Force reset to a clean state

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询