v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1477523442.5 KB

Merges two branches using the fast-forward merge strategy.

post/#X-Amz-Target=CodeCommit_20150413.MergeBranchesByFastForward

Headers

X-Amz-Target'CodeCommit_20150413.MergeBranchesByFastForward' required

Request body

repositoryNamestring required

The name of the repository where you want to merge two branches.

sourceCommitSpecifierstring required

The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).

destinationCommitSpecifierstring required

The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).

targetBranchstring

The branch where the merge is applied.

Response

Success

commitIdstring

The commit ID of the merge in the destination or target branch.

treeIdstring

The tree ID of the merge in the destination or target branch.