Attempting something like git clone git://github.com/ry/node.git
will not work, it results in:
Initialized empty Git repository in /home/robert/
I was also having the same issue for a while. Then I tried changing the git config using the suggested command:
git config --global url."https://".insteadOf git://
which unfortunately did not do the trick for me. I was still having the same problem!
What actually solved my problem at last is, I have reset the remote url of my repository again using the following command:
git remote set-url origin https://github.com/<my_user_name>/<my_repo_name>.git
which was previously like this:
git remote set-url origin git@github.com:<my_user_name>/<my_repo_name>.git
After setting the remote url using https://
instead of git@git.com
the problem was resolved for me.