I’ve just found a good tutorial to compile winexe.
My host was a CentOS 7 box and I followed the instruction of this link:
Execute Windows Commands from Linux using winexe. Connect from Linux to Windows without SSH
In order to have git working, I opened the outgoing connection of 9418 TCP port on my firewall.
Tags: centos, command line, linux, winexe