omninonsense
omninonsense

Reputation: 6882

How to pull a git repository from remote server?

I've seen a few similar questions asked, but they didn't help me figure this out, and I couldn't find any tutorials (I wasn't really sure what I am looking for, to be honest). Also, I haven't used git apart from pulling/pushing onto GitHub, which is why (at least I believe so) I am so confused! GitHub made me spoiled about setting a repo up!

What I did on the server:

What I did from my computer

I have git pre-installed

Which produced this error: fatal: Unable to look up destielstarship@[remote_server](port 9418) (A non-recoverable error occurred during a database look-up. )


  1. I replaced the IP address with [remote_server] for clarity, I hope I didn't make it more confusing.


Update: Whoops! Fixed an awkward typo!

Upvotes: 5

Views: 2088

Answers (1)

Todd A. Jacobs
Todd A. Jacobs

Reputation: 84343

TL;DR

Unless you're running git-daemon on the remote server, you probably want to use ssh rather than git for your URI scheme.

SSH Schemes

To use SSH as your transport, you can clone your repository using the a different URI scheme. For example, assuming your username on the remote host is "destielstarship," you could use the following command:

git clone ssh://[email protected]/path/to/git_test

You can leave off the .git extension for the repository in most cases, and only need to specify a username for the remote host if it differs from your current login.

Upvotes: 8

Related Questions