Perhaps you have been scaffolding, testing and initial silver bullet development and have realised the project is mature enough to share with others. Or you just want it backed up remotely.
git clone local remotedo not work. Destination path for git clone is always local.
What you need to do is on the remote server create a bare git repository:
remoteserver$ mkdir -p /var/local/repos/myproject;
remoteserver$ cd /var/local/repos/myproject;
remoteserver$ git init --bare;
Then add this remote to your local git repository:
localmachine$ git remote add origin \
Now every time you want to push to your remote server, you do a normal push:
localmachine$ git push origin master;
Although I would seriously consider using something github or gitorious instead of your own server.
Unless otherwise specified, all content is licensed under Creative Commons by Attribution 3.0 (CC-BY).
Externally linked images and content are not included and are licensed and copyrighted separately.