我是一名分支机构工作人员,并将我现有的回购上传到公司中央办公室的ftp服务器上。中央办公室正在使用微软的ftp服务器。我无法在服务器上安装任何东西,只能使用支持活动模式ftp的真实ftp客户端连接/浏览到ftp服务器。
我试过用以下命令行克隆:
git克隆ftp://companyDomain\username@ftppany/project.repo/.git git克隆ftp://username@company@ftppany/project.repo/.git git克隆ftp://username%40company@ftppany/project.repo/.git git克隆ftp://用户名:password@ftppany/project。 repo / .git我收到以下错误消息:
错误:无法连接到 ftppany:21 ;访问 ftp://companyDomain\username@ftppany/project.repo/.git/info/refs 时无错误致命:HTTP请求失败
输入上述命令后,我立即得到密码提示。我输入密码,过了一段时间,然后我收到了上面的错误信息。
为了完全清楚我不想推送我的源头版本到部署FTP服务器,所以像git-ftp, github/resmo/git -ftp ,根本不帮我。我想要做的是在ftp服务器上安装我的repo,并且我的小团队中的每个人都可以推送/获取对ftp服务器上repo的更改。
git是否支持主动FTP? 发生了什么?
谢谢, Chris
解决方案他们使用默认的FTP端口吗?如果他们不这样做,你需要声明如下: git克隆ftp://用户名:密码@ ftp。 company:PORTHERE/project.repo/.git
I'm a branch office worker and have uploaded my existing repo to the ftp server at my company's central office. The central office is using Microsoft's ftp server. I have no access to install anything on the server and was only able to connect/browse to the ftp server using a real ftp client that supports active mode ftp.
I have tried cloning with the following command lines:
git clone ftp://companyDomain\username@ftppany/project.repo/.git git clone ftp://username@company@ftppany/project.repo/.git git clone ftp://username%40company@ftppany/project.repo/.git git clone ftp://username:password@ftppany/project.repo/.gitAnd I get the following error message:
error: Failed connect to ftppany:21; No error while accessing ftp://companyDomain\username@ftppany/project.repo/.git/info/refs fatal: HTTP request failed
When entering the above commands I immediately get prompted for my password. I enter the password, some time passes and then I received the above error message.
To be completely clear I'm am NOT looking to push the head version of my source to an FTP server for deployment, so things like git-ftp, github/resmo/git-ftp, don't help me out at all. What I want to do is have my repo on the ftp server and everyone on my very small team be able to push/fetch changes to the repo on the ftp server.
Does git support active FTP? What's going on?
Thanks, Chris
解决方案Do they use the default FTP port? If they don't, you need to declare it like so:
git clone ftp://username:password@ftppany:PORTHERE/project.repo/.git
更多推荐
通过活动FTP克隆git存储库
发布评论