I found the source of the problem.
It was cmder
(the full version which include msysgit) which somehow was in conflict with
my already installed msysgit.
So removing cmder of my computer fixed the problem. If you are using the
"mini" version it should work though.
If interested, I opened an issue https://github.com/bliker/cmder/issues/144