Clone local -> remote

On remote machine:
cd /directory/to/
mkdir my_project.git
cd my_project.git/
git --bare init
On local machine:
cd my_project
git init
git add *
git commit -m "Started working on saving the world."
git remote add origin ssh://user@my.server.com:port/directory/to/my_project.git
git push --set-upstream origin master