GitRead 中文社区
首页
趋势
排行榜
原创文章
严选周刊
更多资源
新手训练营
精选专题
热门话题
GitHub 文档
资源精选
实战指南
推荐位合作
首页
趋势
排行榜
原创文章
严选周刊
新手训练营
精选专题
热门话题
资源精选
实战指南
推荐位合作
GitHub 文档
所有产品
/
REST API
/
分支
分支
The REST API is now versioned.
For more information, see "
About API versioning
."
使用 REST API 修改分支及其保护设置。
Branches
List branches
Get a branch
Rename a branch
Sync a fork branch with the upstream repository
Merge a branch
Branch protection
Get branch protection
Update branch protection
Delete branch protection
Get admin branch protection
Set admin branch protection
Delete admin branch protection
Get pull request review protection
Update pull request review protection
Delete pull request review protection
Get commit signature protection
Create commit signature protection
Delete commit signature protection
Get status checks protection
Update status check protection
Remove status check protection
Get all status check contexts
Add status check contexts
Set status check contexts
Remove status check contexts
Get access restrictions
Delete access restrictions
Get apps with access to the protected branch
Add app access restrictions
Set app access restrictions
Remove app access restrictions
Get teams with access to the protected branch
Add team access restrictions
Set team access restrictions
Remove team access restrictions
Get users with access to the protected branch
Add user access restrictions
Set user access restrictions
Remove user access restrictions
本文源自 GitHub 官方文档(
docs.github.com
,CC-BY-4.0),著作权归属 GitHub 及文档贡献者,由
GitRead 中文社区
整理呈现;如与官方不一致请以官方为准。