'Git reports fatal: write error: invalid argument with git clone on git: protocol

I'm trying to install gitflow on Windows 8 Enterprise, and whenever I run git clone --recursive git://github.com/nvie/gitflow.git I get a fatal: write error: Invalid argument. The clone works with https, but it'll fail when trying to clone the submodule. And the location doesn't matter, it still fails no matter where I open Bash. Also, Git will say "cloning into: 'gitflow'" before reporting the error.

GIT_TRACE=1 and -v don't tell me anything useful in trying to debug this error. Does anyone have any idea how to solve this issue? Am I missing something I need to install? My Git version is 1.8.1.2.



Solution 1:[1]

This is probably because the project you're trying to clone contains a symbolic link: https://github.com/nvie/gitflow/blob/develop/gitflow-shFlags

I do not know why it would work through https and not the git protocol but after cloning it with https, you can replace the symbolic link with a windows symlink (as suggested here: Git Symlinks in Windows)

Solution 2:[2]

Check your firewall. git:// protocol uses TCP port 9418.

https://serverfault.com/questions/189070/what-firewall-ports-need-to-be-open-to-allow-access-to-external-git-repositories

Solution 3:[3]

Just to help people who wind up here many years later... if your file names have a colon in them in the repo this is valid on unix but not on windows. You will get the same error. Having files like directory/C:\logs is a bad idea in general so it should be easy to correct.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Community
Solution 2 Community
Solution 3 ojblass