MERGE BRANCH
Merge a (source) branch into the current branch that you are in by default, or into a target branch that you specify.
SyntaxMERGE BRANCH <source_branch_name>
[ INTO <target_branch_name> ]
[ IN <source_name> ]
Parameters
<source_branch_name> String
The name of the branch that you want to merge into your target branch. If a target branch is not specified, the source branch is merged into the current branch you are in.
INTO <target_branch_name> String Optional
The name of the branch that is the target for the merge. If you do not use this optional clause and the reference is a branch, the query still runs successfully. However, if the reference is not a branch, the query fails because you can merge only branches.
IN <source_name> String Optional
The name of the source. If not specified, the current source in the query context is used.
Examples
Merge a branch you specify into the current reference branchMERGE BRANCH myBranch
MERGE BRANCH myBranch
INTO main
IN mySource