← Back to context

Comment by skydhash

4 hours ago

ssh isn't a web service (some would argue that smtp and ftp aren't too as they came before the web).

And I believe GP was talking about the only thing you need is:

  ssh user@remotehost git init --bare repo.git

And then you can add the remote to your local repo with

  git remote add origin user@remotehost:repo.git

Now all you need to do is

  git push origin branch_name

Replace origin with another identifier if it's already taken.