(created/git2cpp/merge.md)=
# git2cpp merge

```{parsed-literal}
Join two or more development histories together


git2cpp merge [OPTIONS] [&lt;branch&gt;...]


POSITIONALS:
&nbsp; &lt;branch&gt; TEXT ...           Branch(es) to merge

OPTIONS:
&nbsp; -h,     --help              Print this help message and exit
&nbsp;         --no-commit         With --no-commit perform the merge and stop just before creating
&nbsp;                             a merge commit, to give the user a chance to inspect and further
&nbsp;                             tweak the merge result before committing.
&nbsp;                             Note that fast-forward updates do not create a merge commit and
&nbsp;                             therefore there is no way to stop those merges with --no-commit.
&nbsp;                             Thus, if you want to ensure your branch is not changed or updated
&nbsp;                             by the merge command, use --no-ff with --no-commit.
&nbsp;         --abort             Abort the current conflict resolution process, and try to
&nbsp;                             reconstruct the pre-merge state. If an autostash entry is
&nbsp;                             present, apply it to the worktree.
&nbsp;                             If there were uncommitted worktree changes present when the merge
&nbsp;                             started, git merge --abort will in some cases be unable to
&nbsp;                             reconstruct these changes. It is therefore recommended to always
&nbsp;                             commit or stash your changes before running git merge.
&nbsp;                             git merge --abort is equivalent to git reset --merge when
&nbsp;                             MERGE_HEAD is present unless MERGE_AUTOSTASH is also present in
&nbsp;                             which case git merge --abort applies the stash entry to the
&nbsp;                             worktree whereas git reset --merge will save the stashed changes
&nbsp;                             in the stash list.
&nbsp;         --quit              Forget about the current merge in progress. Leave the index and
&nbsp;                             the working tree as-is. If MERGE_AUTOSTASH is present, the stash
&nbsp;                             entry will be saved to the stash list.
&nbsp;         --continue          After a git merge stops due to conflicts you can conclude the
&nbsp;                             merge by running git merge --continue
```
