Git
下载仓库归档。Download repository archive.
打包下载仓库指定引用(分支、标签或提交)下的文件内容。支持指定子路径仅下载部分目录。 Download repository files as an archive for the specified reference (branch, tag, or commit). Supports specifying a sub-path to download only part of the directory. 秘密仓库禁止使用此接口。 Secret repositories are forbidden from using this endpoint. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-code:r
get/{repo}/-/git/archive/{ref_with_path}
Request
- Base URL: https://api.cnb.cool (the document declares no server; this is the origin it was published from)
- URL: https://api.cnb.cool/{repo}/-/git/archive/{ref_with_path}
- Auth: API key in header Authorization
Path parameters
repostring required
不带.git后缀的仓库名称。格式:组织名称/仓库名称。Repository name without .git suffix. Format: org/repo.
ref_with_pathstring required
包含路径的Git引用。格式:分支名,标签名,提交哈希,分支名/文件路径,标签名/文件路径,提交哈希/文件路径
Changes
No recorded changes to this operation across all 1 revision of this API.