! Unsupported commit message encoding: 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>...]'