我的域名:bs.com
主要ftp帐户:bs
我设立了一个新的ftp帐户:
新FTP帐户:
登录:annejulie@bs.com
密码:密码
端口:21
(从我使用的程序获得的端口数到ftp帐户,在我的例子中是“数码鸭”)
到git存储库的完整路径:home/bs/git/annejulie.bs.com.git
我不知道这是否重要,但是新的FTP帐户可以访问下面的路径/home/bs/domains/annejulie.bs.com
我克隆git存储库的源URL:
ftp://annejulie@bs.com:password@bs.com:21/home/bs/git/annejulie.bs.com.git 当我传递我的源url时,我得到一个错误:
fatal: Not a git repository (or any of the parent directories): .git
fatal: unable to access
'ftp://annejulie@bs.com:password@bs.com:21/home/bs/git/annejulie.bs.com.git/':
Could not resolve host: bs.com:annejulie@bs.com我读过这篇文章clone git repository via active FTP,但它对我没有用。我做错什么了?
发布于 2014-12-24 21:22:43
您需要在用户名(%40)中对@进行URL编码:
ftp://annejulie%40bs.com:password@bs.com:21/home/bs/git/annejulie.bs.com.githttps://stackoverflow.com/questions/27641966
复制相似问题