此版本的 GitHub Enterprise 已停止服务 2022-10-12. 即使针对重大安全问题,也不会发布补丁。 为了获得更好的性能、更高的安全性和新功能,请升级到最新版本的 GitHub Enterprise。 如需升级帮助,请联系 GitHub Enterprise 支持。
We've recently moved some of the REST API documentation. If you can't find what you're looking for, you might try the new Branches, Collaborators, Commits, Deploy Keys, Deployments, GitHub Pages, Releases, Metrics, Webhooks REST API pages.
存储库
仓库 API 允许创建、管理以及控制公共和私有 GitHub Enterprise Server 仓库的工作流程。
- 存储库
- List organization repositories
- Create an organization repository
- Get a repository
- Update a repository
- Delete a repository
- List repository contributors
- Create a repository dispatch event
- List repository languages
- List repository tags
- List repository teams
- Get all repository topics
- Replace all repository topics
- Transfer a repository
- Create a repository using a template
- List public repositories
- List repositories for the authenticated user
- Create a repository for the authenticated user
- List repositories for a user
- 仓库内容
- Get repository content
- Create or update file contents
- Delete a file
- Get a repository README
- Get a repository README for a directory
- Download a repository archive (tar)
- Download a repository archive (zip)
- 前叉