首页 > 解决方案 > 通过 Artifactory git 镜像克隆 github.com repo

问题描述

Artifactory 支持vcs原生支持 github、bitbucket 和其他 git 服务器的存储库。

他们的文档显示可以通过 API 设置和访问 github.com 镜像

https://www.jfrog.com/confluence/display/JFROG/VCS+Repositories

curl -iL  "http://artifactory.example.com/api/vcs/downloadBranch/github-vcs/jquery/jquery/main"

您将如何使用gitcli 而不是 `curl 执行相同的克隆操作?


尝试

git clone "http://artifactory.example.com/api/vcs/downloadBranch/github-vcs/vim/vim/master
git clone https://artifactory.example.com/vim/vim
git clone https://artifactory.example.com/api/vcs/github-vcs/vim/vim

标签: githubartifactory

解决方案


根据文档和未解决的问题,目前 Artifactory 仅使用 REST API 支持 vcs (git) 克隆,而不使用 git 客户端(但支持git-lfs)。您可以在此问题
中找到更多详细信息,artifactory jira 中 也有未解决的问题


推荐阅读