repos

Sync a fork branch with the upstream repository

Sync a branch of a forked repository to keep it up-to-date with the upstream repository.

post/repos/{owner}/{repo}/merge-upstream

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository without the .git extension. The name is not case sensitive.

Request body

branchstring required

The name of the branch which should be updated to match upstream.

Response

The branch has been successfully synced with the upstream repository

messagestring
merge_type'merge' | 'fast-forward' | 'none'
base_branchstring

Changes

No changes recorded. 1 of the 62 revisions has no diff computed, so it could not be searched.