--- title: "Merging branches" slug: "merging-branches" updated: 2026-10-26T13:19:29Z published: 2026-10-26T13:19:29Z canonical: "learn.allspice.io/merging-branches" --- > ## Documentation Index > Fetch the complete documentation index at: https://learn.allspice.io/llms.txt > Use this file to discover all available pages before exploring further. # Merging branches Merging branches in a repository with a Design Review is similar to closing and releasing an Engineering Change Order (ECO). After your team is done reviewing file changes in a Design Review, the next step is to merge the `develop` branch into the `main` branch. This creates a new commit snapshot on the `main` branch that is a copy of the most recent `develop` commit. This creates a new baseline to compare subsequent changes. ## Before you merge Before clicking Merge Files, confirm: - the Design Review has the approvals or final comments your team expects - `develop` contains the changes you intend to promote - `main` still represents the last approved baseline - the diff only shows the files you want included in this merge If anything in the review looks broader than expected, pause and resolve that first so the next baseline stays clean. ## Merging the Design Review [Merge Files in a Design Review Pull Request](https://demo.arcade.software/MgT8t27pEvWGE8jN0X7X?embed&embed_mobile=tab&embed_desktop=inline&show_copy_link=true) Merge Files in a Design Review Pull Request 1. Scroll to the bottom of the Design Review Conversation tab ![Image](https://cdn.document360.io/3d44af5c-3f49-4ca5-b152-10836a885c13/Images/Documentation/image(185).png) 2. Click the Merge Files button to begin merging changes from the reviewed pull request. ![Image](https://cdn.document360.io/3d44af5c-3f49-4ca5-b152-10836a885c13/Images/Documentation/image(186).png) 3. Add final comments 4. Finalize by confirming the file merge to complete the pull request process. ![Image](https://cdn.document360.io/3d44af5c-3f49-4ca5-b152-10836a885c13/Images/Documentation/image(187).png) 5. Congratulations. You've merged two branches and closed out a Design Review. Time to create a release. ## Things that can prevent merging - A reviewer has requested changes that still need to be addressed. - The `develop` and `main` branches have conflicts that must be resolved before merging. - A teammate pushed new commits after the review was opened, and the review needs to be refreshed. - Repository permissions do not allow you to merge into the target branch. - Required checks or branch protection rules are still blocking the merge. ## Troubleshooting If the merge button is unavailable or the merge fails, start with these checks: 1. Refresh the Design Review and confirm you are looking at the latest commits on both branches. 2. Review any conflict or policy message shown in the merge panel. 3. Confirm the review direction is still from `develop` to `main`. 4. Ask a repository admin to verify your branch permissions if the problem appears access-related. 5. Resolve branch conflicts, push the updated branch, and reopen the review if needed. If the diff looks wrong instead of simply blocked, go back to [Create A Design Review](/workflows/design-reviews/create-a-design-review.md) and verify that your baseline on `main` and your working changes on `develop` are set up correctly.