git commit gives error: empty commit set passed

git, github

Solution

Remove the ..HEAD part. At least on my system (git v2.7.4) this resolved the issue.

git revert --no-commit 0766c053

Problem

When trying to revert to a previous commit, I tried: ``` git revert --no-commit 0766c053..HEAD ``` However this gave an error: ``` empty commit set passed ``` Question: What does the error mean, and what went wrong with the `revert` command?

Original source