gitで一番最初のコミットを取り消そうとして
git reset HEAD~
を実行しても、
$ git reset HEAD~
fatal: ambiguous argument 'HEAD~': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
となり取り消すことができません。
この場合は以下のコマンドで取り消すことができます。
$ git update-ref -d HEAD