Git for Windows is providing mktemp (GNU coreutils) 8.26 version with it.
current "mktemp -t t" command gives error:
mktemp: too few X's in template ‘t’
Changing command to "mktemp -t tXXXXXXXX" works correctly. I don't have MacOS X to test if this would work there.