Skip to main content
To merge a branch or commit into the current checkout branch, you use the merge command:
<other_id> is the id of the branch or the commit you want to merge. [--into <branch>] specifies the destination branch to merge into. Defaults to the current branch. [--delete-branch] deletes the source branch after a successful merge. The repository’s default branch cannot be deleted. [--conflict_resolution <strategy>] sets how conflicts are handled:
  • manual — resolve conflicts manually via the app (default)
  • keep-destination — resolve all conflicts by keeping the destination branch’s changes
  • accept-incoming — resolve all conflicts by accepting the incoming source branch’s changes
  • merge-tool — resolve conflicts with the merge tools you set up with dv merge-tool. See External Merge Tools.
  • ai — resolve text conflicts with AI. Completes the merge only if AI resolves every conflict; otherwise the merge stays open for the app. Available on Professional plans and higher. See Resolve Conflicts with AI.
[--skip-picked-changes] skips changes the destination branch already received by a cherry-pick, instead of merging them again. The option stays with the merge until it is completed. To apply those changes again, abort the merge and start it over without the flag. [--nowait] returns immediately without waiting for the merged files to finish syncing to your local workspace. By default, the command waits until the sync is done.