You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

尝试克隆Microsoft AutoGen仓库时遇“repository not found”错误求助

解决AutoGen示例克隆失败的问题

错误原因

你用的是GitHub网页端的目录浏览URL(包含/tree/main/路径),但git clone命令只能识别仓库的克隆地址,无法直接克隆单个目录的网页链接,所以会提示仓库不存在。

解决方法

方法1:克隆整个仓库后进入目标目录

先克隆完整的AutoGen仓库,再切换到website目录:

git clone https://github.com/microsoft/autogen.git
cd autogen/website

方法2:仅克隆指定目录(节省空间)

如果不想克隆整个仓库,可以用Git的稀疏检出功能单独获取website目录:

  • 初始化空仓库并关联远程地址:
mkdir autogen-website
cd autogen-website
git init
git remote add origin https://github.com/microsoft/autogen.git
  • 启用稀疏检出并设置目标目录:
git sparse-checkout init --cone
git sparse-checkout set website
  • 拉取对应分支的代码:
git pull origin main

内容的提问来源于stack exchange,提问作者Ya.

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.08 07:07:32