clone git repository via active FTP

本小妞迷上赌 提交于 2019-11-30 23:55:13

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

Try

git clone ftp://username:password@ftp.company.com/project.repo/.git

I tried also all FTP examples here, none was working. Since my server pc is a linux machine I installed git on it and then can clone be done use:

git clone username:servername:/folder1/folder2/repoFolder.git

Then you will be asked for password. If no git is installed on server you will get:

sh: git-upload-pack: not found
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!