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

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