Since a few days I got an issue with Mac OS High Sierra 10.13.3 : When I run a git clone like git clone github.com/xxx.git failed it print:
git clone
git clone github.com/xxx.git failed
I experienced this while trying to clone from an enterprise repository, and simply restarting the terminal solved it for me.