Tool Parameter Abuse
- Category
- Tool Misuse
- Confidence
- 84% confidence
- Finding
git reset --hard HEAD~1is a highly destructive command that permanently discards local changes and rewrites local history, yet it is presented as copy-paste-ready with only a terse comment. In this skill context, the danger is elevated because the document is intended for quick command lookup rather than careful tutorial reading.- Content
git restore # Discard changes git restore --staged # Unstage git reset HEAD
1 # Undo last commit (keep changes) git reset --hard HEAD1 # Destroy last commit git stash git stash poptext
