通过活动FTP克隆git存储库 [英] clone git repository via active FTP

查看:204
本文介绍了通过活动FTP克隆git存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名分支机构工作人员,并将我现有的回购上传到公司中央办公室的ftp服务器上。中央办公室正在使用微软的ftp服务器。我无法在服务器上安装任何东西,只能使用支持活动模式ftp的真实ftp客户端连接/浏览到ftp服务器。



我试过用以下命令行克隆:

  git克隆ftp://companyDomain\username@ftp.company.com/project.repo/.git 
git克隆ftp://username@company.com@ftp.company.com/project.repo/.git
git克隆ftp://username%40company.com@ftp.company.com/project.repo/.git
git克隆ftp://用户名:password@ftp.company.com/project。 repo / .git

我收到以下错误消息:


错误:无法连接到 ftp.company.com:21 ;访问
ftp://companyDomain\username@ftp.company.com/project.repo/.git/info/refs
时无错误致命:HTTP请求失败


输入上述命令后,我立即得到密码提示。我输入密码,过了一段时间,然后我收到了上面的错误信息。



为了完全清楚我不想推送我的源头版本到部署FTP服务器,所以像git-ftp, https://github.com/resmo/git -ftp ,根本不帮我。我想要做的是在ftp服务器上安装我的repo,并且我的小团队中的每个人都可以推送/获取对ftp服务器上repo的更改。

git是否支持主动FTP?
发生了什么?



谢谢,
Chris

解决方案他们使用默认的FTP端口吗?如果他们不这样做,你需要声明如下:

  git克隆ftp://用户名:密码@ ftp。 company.com: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@ftp.company.com/project.repo/.git 
git clone ftp://username@company.com@ftp.company.com/project.repo/.git
git clone ftp://username%40company.com@ftp.company.com/project.repo/.git
git clone ftp://username:password@ftp.company.com/project.repo/.git

And I get the following error message:

error: Failed connect to ftp.company.com:21; No error while accessing ftp://companyDomain\username@ftp.company.com/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, https://github.com/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@ftp.company.com:PORTHERE/project.repo/.git

这篇关于通过活动FTP克隆git存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆