1
0
mirror of synced 2026-01-01 00:04:41 -05:00
Files
docs/content/rest/reference/branches.md
2021-12-14 20:39:25 +00:00

1.1 KiB

title, intro, allowTitleToDifferFromFilename, versions, topics, miniTocMaxHeadingLevel
title intro allowTitleToDifferFromFilename versions topics miniTocMaxHeadingLevel
Branches The branches API allows you to modify branches and their protection settings. true
fpt ghes ghae ghec
* * * *
API
3

Branches

{% for operation in currentRestOperations %} {% if operation.subcategory == 'branches' %}{% include rest_operation %}{% endif %} {% endfor %}

Merging

The Repo Merging API supports merging branches in a repository. This accomplishes essentially the same thing as merging one branch into another in a local repository and then pushing to {% data variables.product.product_name %}. The benefit is that the merge is done on the server side and a local repository is not needed. This makes it more appropriate for automation and other tools where maintaining local repositories would be cumbersome and inefficient.

The authenticated user will be the author of any merges done through this endpoint.

{% for operation in currentRestOperations %} {% if operation.subcategory == 'merging' %}{% include rest_operation %}{% endif %} {% endfor %}