【问题标题】:Clone github.com repo through Artifactory git mirroring通过 Artifactory git 镜像克隆 github.com repo
【发布时间】:2021-02-22 21:35:14
【问题描述】:

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"

您将如何使用 git cli 而不是 `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

【问题讨论】:

    标签: github artifactory


    【解决方案1】:

    根据文档和未解决的问题,目前 Artifactory 仅支持使用 REST API 而不是 git 客户端的 vcs (git) 克隆(但支持 git-lfs)。
    你可以在这里找到更多细节in this question
    在 artifactory jira 中也有开放的issue

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-08-07
      • 1970-01-01
      • 2022-11-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多