git remote add joyent yourname.no.de:repo
I’m assuming that this means it is using the git protocol. I however have no idea what the :repo means at the end … because its not a port number. Is it the username? Is it looking for a git repo in ~/repo?
I really just want to add a port to that command and map it to something of the form:
git remote add joyent ssh://user@host:1234/wherevermyrepois
The last argument to
git remote addtells git how to connect to the remote repository. In this case, the argument isyourname.no.de:repo, which means that it’s in the formathostname:path. The*hostname*part isyourname.no.deand names the host (computer) that has the repository. The*path*part isrepoand is the filesystem path of the repository onyourname.no.de.To turn it into a URL with a port number, try this:
or this:
where
usernameis your user name.If you need to specify a different username that your local username, try this: