通过活动FTP克隆git存储库

编程入门 行业动态 更新时间:2024-10-28 21:17:28
本文介绍了通过活动FTP克隆git存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我是一名分支机构工作人员,并将我现有的回购上传到公司中央办公室的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/.git

And 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存储库

本文发布于:2023-11-11 04:45:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1577413.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:FTP   git

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!