set a ftp repository with git
I want to change my repository from bazaar to git. I installed Git (winXP) and tortoise with no problem, I set path variables, etc...
I have initialized my repository with:
$ git init
copied it using
$ cd ..
$ git clone --bare project.git
uploaded it to FTP, and when trying to access:
$ 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
I checked and .../project.git/info/refs does not exists. What am I missing?
PD: ftp_address = 'ftp://user%40example.org@ftp.example.org/git/project.git'
As mentioned in Git everyday, you need to make sure your info/refs
and objects/info/packs
are up-to-date.
Hence the git --bare update-server-info
Regarding the @
issue, the url is usually ftp://login:pass@serveur
.
If you have an @
in the login, that makes for an extra (and incorrect) separator.
%40
should be the right way to include an @
in the login name.
You can try as an ftp address:
*ftp_address* = 'ftp://"user%40example.org"@ftp.example.org/git/project.git'
(or some other kind of quotes or double quotes definition to better isolate the username)
Try replacing
Replace the @ symbol (or the '%40') with a '+' in the username
*ftp_address* = 'ftp://"user+example.org"@ftp.example.org/git/project.git'
精彩评论