Use Dropbox for a git repository in the cloud. I use it for backup purposes.
It's important to use --bare
to create a bare repo (without working copy) instead of a normal one, because git will complain about pushing to the working branch otherwise.
References: