--- title: REST API endpoints for branches and their settings shortTitle: Branches intro: Use the REST API to modify branches and their protection settings. allowTitleToDifferFromFilename: true versions: fpt: '*' ghes: '*' ghec: '*' topics: - API children: - /branches - /branch-protection redirect_from: - /rest/reference/branches autogenerated: rest ---