! Unsupported commit message encoding: fatal: ambiguous argument 'HEAD~0': unknown revision or path not in the working tree. !

Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'