Okay. So I have my site hosted on InmotionHosting. It's a shared server, so ssh is out. I've been accessing it via FTPS. I use git at work, so I've been curious to start using git for my personal site. Only issue, I'm unsure of how to connect to my current site using git. I know it's compatible with ftps, since it's in the manual, but I get the error:
"failed to connect to [my site]" "couldn't resolve host" "fatal: HTTP request failed" "error while accessing [my site]/info/refs"
I've tried:
git clone [username]:[pass]@[site] [local repository]
git clone [username]@[site] [local repository]
git clone [username]@[site]:[port from cpanel] [local repository]
git clone [username]%40[site]@[site] [local repository]
Nothing works. Is there something I'm missing? Do I need to install something on the server? Any help is appreciated. Thanks!
> man git-clone
results in:
GIT URLS
In general, URLs contain information about the transport protocol, the address of the remote server, and the path to the repository.
Depending on the transport protocol, some of this information may be absent.
Git natively supports ssh, git, http, https, ftp, ftps, and rsync protocols. The following syntaxes may be used with them:
· ssh://[user@]host.xz[:port]/path/to/repo.git/
· git://host.xz[:port]/path/to/repo.git/
· http[s]://host.xz[:port]/path/to/repo.git/
· ftp[s]://host.xz[:port]/path/to/repo.git/
FTPS seems to be one of the allowed protocols.
Try git clone ftps://host.xz[:port]/path/to/repo.git/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With