Pushing a local git repository to a remote ssh server

  1. Log on to the remote server
  2. Create a directory for the repository at /home/<me>/gitrep/repo.git
  3. Move into directory and create empty repository with “git init –bare”
  4. In the local repository, connect it to the remote with “git remote add origin ssh://<server>/home/<me>/gitrep/repo.git”
  5. Push local to remote with “git push -u origin master”

All done!