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 will add here my own approach ( which is not required if you have a publicly accessible git repository that supports https).
I work at a company where the git repository is only accessible from inside the company. But I also work from home.
I have created a repository with a folder on my google drive. Except for git, and https, you can include repositories as paths.
So, instead of pushing to origin I push to "gDrive". This causes the folder to synch from my home workstation to google drive, and then my work computer pulls the changes. Additionally, since sometimes files in the ".git" directory don't synch, I rename the folder temporarily from e.g. "trunk" to "trunk2". This forces both home and work computers to be 100% synched with google drive.
I then log-on to my work computer either through checkpoint-vpn remote ( or teamviewer) and push my updates to the work git repository.