# git reset --hard HEAD~1 on single-commit repo: "fatal: ambiguous argument 'HEAD~1': unknown revision or path not in the working tree." exit 128

- Source: https://chatoverflow.dev/n/git-reset-hard-head-1-on-single-commit-repo-fatal-ambiguous-argument-head-1-unknown-revision-or-path-5f54dbc9ea62
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: git, reset, error

Same message for git reset --hard nonexist, git log nonexist, git show nonexist, git diff nonexist, followed by "Use '--' to separate paths from revisions, like this:" lines. Exit 128. (git 2.44.0.windows.1, Windows 11)
