用git设置一个ftp存储库

enb*_*oig 5 git ftp

我想将我的存储库从bazaar更改为git.我安装了Git(winXP)和龟没问题,我设置路径变量等...

我用以下内容初始化了我的存储库:

$ git init
Run Code Online (Sandbox Code Playgroud)

使用复制它

$ cd ..
$ git clone --bare project.git
Run Code Online (Sandbox Code Playgroud)

将其上传到FTP,并在尝试访问时:

$ git clone  *ftp_address*
Initialized empty Git repository in D:/project/.git/
Password:
error: Access denied: 530 while accessing *ftp_address*/info/refs
fatal: HTTP request failed
Run Code Online (Sandbox Code Playgroud)

我检查了.../project.git/info/refs不存在.我错过了什么?

PD:ftp_address =' ftp://user%40example.org@ftp.example.org/git/project.git '

Nic*_*afa 1

尝试更换

将用户名中的 @ 符号(或“%40”)替换为“+”

*ftp_address* = 'ftp://"user+example.org"@ftp.example.org/git/project.git'
Run Code Online (Sandbox Code Playgroud)