When you haven't pushed the commit; you've just realised after running a commit and too many files have been included in the command.

git reset --soft HEAD~1