---
title: "Work in source control"
url: https://www.marlasowards.com/samples/contributor-guide/04-work-in-source-control
description: "How merges and merge conflicts work in Azure DevOps, and how to check in local changes and create a pull request."
author: Writing sample by Marla Sowards
---

> For an index of every page on this site, see [llms.txt](https://www.marlasowards.com/llms.txt).

> **Note:** I built this project for an enterprise SaaS company. However, what I've shared is genericized to mask proprietary information, including names of companies, products, features, and UI controls. Product images are mockups generated by Claude.

# Work in source control

> **Note**
>
> The source article for this page was itself marked "work in progress" — including the repeated "Create a pull request" heading below, which is preserved here as-is rather than cleaned up.

## How merges work

These diagrams show how merging local files into an Azure DevOps repository works.

The first diagram shows how two users can merge changes to the same repository without merge conflicts. The second shows how merge conflicts occur and are resolved.

## Checking local updates into Azure DevOps

1. After finalizing and saving your content changes in Visual Studio (VS) Code, click the version control icon.
2. Click the plus icon above your list of changes. This will stage all your changes and prepare them to be committed to your local repository branch.
3. Click in the commit message field.
4. Type a brief, clear message describing your changes (something that will help you remember what you did when you're reviewing the revision history).
5. Click the check icon to commit your changes to your local repository branch.
6. Look to see which branch you're working in (lower left corner of the screen). If it's the main branch, you'll want to create a new branch to publish your changes on Azure DevOps. Click on the branch name.
7. Click in the input field in the top middle of the screen and type your branch name (e.g., `user/your.name/short-branch-description`).
8. Click **+ Create new branch**.
9. Click **Publish Branch** to publish your new branch with your content changes to Azure DevOps.

## Create a pull request

1. Navigate to the site repository in Azure DevOps. You should see a message mid-screen showing the branch you just published.
2. Click **Create a pull request**.
3. Name the pull request and enter a description if changes were complex (for brief, simple changes, descriptions aren't needed). Make sure you are merging into the right branch (this will usually be "main" or "master").
4. Click **Create**. Azure DevOps performs a test merge to see if your changes conflict with changes in the destination branch.
5. If you have merge conflicts, click **Conflicts** and review the changes that are conflicting.
6. Review the changes that are conflicting. To resolve them, click the dropdown next to **Submit Merge**.
7. Choose which changes to keep.
8. Click **OK**.
9. After resolving any conflicts, click **Overview** to go back to the main screen.
10. If your changes are complex, add reviewers and wait for them to approve before completing your pull request. If your changes are simple, you can approve them. If appropriate for your situation, click **Approve**.
11. After you have necessary approvals, click **Complete**.
12. In the slide-out pane, click **Complete merge**. This merges your changes into the destination branch you selected and kicks off the build pipeline.

## Create a pull request

1. Navigate to the project repository in Azure DevOps.
2. Click **Create a pull request**.
3. At the top, verify that the branch you are pulling updates from is listed, and either `main` or `master` is listed as the branch you're pulling the content into.
