> ## Documentation Index
> Fetch the complete documentation index at: https://bruno-a6972042-mintlify-runrequest-response-fields-17751331.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Provider

export const PremiumBadge = ({noLink}) => {
  const badge = <span style={{
    display: 'inline-flex',
    alignItems: 'center',
    gap: '0.25rem',
    padding: '0.25rem 0.5rem',
    fontSize: '0.75rem',
    fontWeight: '600',
    borderRadius: '0.5rem',
    backgroundColor: '#FCD34D',
    color: '#92400E',
    marginLeft: '0.5rem',
    lineHeight: '1.2'
  }}>
      PREMIUM
    </span>;
  if (noLink) {
    return badge;
  }
  return <a href="https://www.usebruno.com/pricing" target="_blank" rel="noopener noreferrer" style={{
    textDecoration: 'none'
  }}>
      {badge}
    </a>;
};

This guide covers Git operations for team members who create and share collections.

## Free Features

<Info>
  The following features are available in the **free version** starting from Bruno 3.0.0.
</Info>

### Initializing Git

Initializing Git in Bruno is the first step towards managing your API collections with version control. It's easy and quick to set up. Follow the steps below to initialize Git.

1. Launch the **Bruno app**.
2. Navigate to the collection you want to initialize with Git.
3. Click on the **Git Icon** in the top-right corner of the navbar.
4. Click the **Initialize** button to set up your collection with Git.

<img src="https://mintcdn.com/bruno-a6972042-mintlify-runrequest-response-fields-17751331/jXZIPji0x_-zXRMz/images/screenshots/git-integration/git-gui/1-init-git.webp?fit=max&auto=format&n=jXZIPji0x_-zXRMz&q=85&s=f6d51d28a4cd76cff878bbcb94d30504" alt="Initialize Git" width="2744" height="1566" data-path="images/screenshots/git-integration/git-gui/1-init-git.webp" />

This allows you to perform other Git operations such as viewing diffs, pulling changes, and more.

### Viewing Diffs

Before committing changes, you can view the differences between your local changes and the previous version. Bruno provides two diff viewing modes to help you understand changes better.

1. Go to **Git UI**.
2. Click on any modified file to see the diff view.
3. Review the changes highlighted in the diff viewer.

<img src="https://mintcdn.com/bruno-a6972042-mintlify-runrequest-response-fields-17751331/jXZIPji0x_-zXRMz/images/screenshots/git-integration/git-gui/2-git-view.webp?fit=max&auto=format&n=jXZIPji0x_-zXRMz&q=85&s=0898820e0fff61422ac49c26ed494223" alt="View Diffs" width="2748" height="1780" data-path="images/screenshots/git-integration/git-gui/2-git-view.webp" />

#### Text-Based Diff View

The **Text-Based Diff** view displays changes in a traditional side-by-side or unified format, showing additions and deletions line-by-line. This is ideal for reviewing detailed code changes.

<img src="https://mintcdn.com/bruno-a6972042-mintlify-runrequest-response-fields-17751331/jXZIPji0x_-zXRMz/images/screenshots/git-integration/git-gui/git-text-based-diff.webp?fit=max&auto=format&n=jXZIPji0x_-zXRMz&q=85&s=e6b395d35fcb167109a5024c9822035d" alt="Text-Based Diff" width="2606" height="1580" data-path="images/screenshots/git-integration/git-gui/git-text-based-diff.webp" />

#### Visual-Based Diff View

The **Visual-Based Diff** view provides a more intuitive, visual representation of changes. This mode highlights modifications in a user-friendly format, making it easier to understand structural changes at a glance.

<img src="https://mintcdn.com/bruno-a6972042-mintlify-runrequest-response-fields-17751331/jXZIPji0x_-zXRMz/images/screenshots/git-integration/git-gui/git-visual-based-diff.webp?fit=max&auto=format&n=jXZIPji0x_-zXRMz&q=85&s=5241ed463bc3250c38e26d3d96e4412d" alt="Visual-Based Diff" width="2606" height="1580" data-path="images/screenshots/git-integration/git-gui/git-visual-based-diff.webp" />

You can switch between these views to choose the format that best suits your workflow and helps you understand exactly what has changed before deciding to commit.

***

## Pro & Ultimate Features <PremiumBadge noLink />

<Info>
  The following features require [Pro or Ultimate](https://www.usebruno.com/pricing) editions.
</Info>

### Connecting to Remote Repository

Once you have initialized your collection, the next step is to connect it to a remote Git repository.
You can directly connect to a remote repository from Bruno using the Git GUI feature.

To connect Bruno to GitHub, you need to set up either an SSH key or a Personal Access Token (PAT) on GitHub. Follow this [official GitHub guide](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) to set it up.

1. Create an empty Git repository on GitHub.
2. Open **Git initialized** Bruno collection.
3. Click on **Quick Links** (bottom-left corner).
4. Select **Remotes** from the dropdown.

<img src="https://mintcdn.com/bruno-a6972042-mintlify-runrequest-response-fields-17751331/jXZIPji0x_-zXRMz/images/screenshots/git-integration/git-gui/5-add-remote-option.webp?fit=max&auto=format&n=jXZIPji0x_-zXRMz&q=85&s=10cf3f1ce76e9c928fa8d9796b51c80d" alt="Add Remote Option" width="2778" height="1914" data-path="images/screenshots/git-integration/git-gui/5-add-remote-option.webp" />

5. Click the **Add Remote** button.
6. Enter **Remote Name** and **URL** (HTTPS or SSH) and click **Save**.

<img src="https://mintcdn.com/bruno-a6972042-mintlify-runrequest-response-fields-17751331/jXZIPji0x_-zXRMz/images/screenshots/git-integration/git-gui/6-add-remote-dialogbox.webp?fit=max&auto=format&n=jXZIPji0x_-zXRMz&q=85&s=503b4819933d6c16b8d8d55134a6951f" alt="Add Remote Dialog Box" width="2742" height="1512" data-path="images/screenshots/git-integration/git-gui/6-add-remote-dialogbox.webp" />

After completing the above steps, your collection will be connected to GitHub. We have to **add and commit** (see below) some changes to push the collection to GitHub.

Once your collection is connected to the remote repository, you can manage it directly from the Bruno app.

### Adding and Committing Changes

Once you've made changes to your collection in Bruno, you can easily commit those changes using the Git UI. This allows you to track changes and collaborate with your team efficiently.

Follow these steps to add and commit changes:

1. Go to **Git UI**.
2. Click the **Add Icon** to stage your changes.

<img src="https://mintcdn.com/bruno-a6972042-mintlify-runrequest-response-fields-17751331/jXZIPji0x_-zXRMz/images/screenshots/git-integration/git-gui/3-stage-changes.webp?fit=max&auto=format&n=jXZIPji0x_-zXRMz&q=85&s=1abd516123c2808e86f86a5db1d9e59c" alt="Stage Changes" width="2774" height="1698" data-path="images/screenshots/git-integration/git-gui/3-stage-changes.webp" />

3. Click the **Commit Changes** button.
4. Write a commit message and click **Commit**.

<img src="https://mintcdn.com/bruno-a6972042-mintlify-runrequest-response-fields-17751331/jXZIPji0x_-zXRMz/images/screenshots/git-integration/git-gui/4-commit-changes.webp?fit=max&auto=format&n=jXZIPji0x_-zXRMz&q=85&s=6137a73f00a18e41559d5f1f7390ff33" alt="Commit Changes" width="2752" height="1684" data-path="images/screenshots/git-integration/git-gui/4-commit-changes.webp" />

> You can commit all changes in a single click by pressing the **Add All Changes** button.

By following these steps, your changes are now committed and tracked in Git, ready to be pushed or shared with others.

### Pushing Changes

The GUI-based Git integration in Bruno allows both engineering and non-engineering teams to work together in a fast, efficient, and accurate manner. This integration ensures that your collections remain consistently up-to-date across all team members.

> Before you can push or pull changes, ensure that the **remote repository** is linked to your project.

Push your local changes to the remote repository with just a few clicks.

1. Go to **Git UI** and click the **Fetch** button.
2. Click the **Push** button.

<img src="https://mintcdn.com/bruno-a6972042-mintlify-runrequest-response-fields-17751331/jXZIPji0x_-zXRMz/images/screenshots/git-integration/git-gui/8-push-pull.webp?fit=max&auto=format&n=jXZIPji0x_-zXRMz&q=85&s=5dbe55c393322e9fb8669cf3f7cc9848" alt="Push Pull" width="2760" height="1686" data-path="images/screenshots/git-integration/git-gui/8-push-pull.webp" />

Now you can see all your local changes pushed to the remote repository.

> Follow the Consumer guide to learn about the pulling changes feature.

### Branch Creation and Checkout

With branches in **Bruno**, you can manage your code effectively by isolating different features or tasks.

#### Creating Branches

Follow the steps below to create branches in Bruno.

1. Go to **Git UI**.
2. In the bottom left corner, click on **main** (or the default branch name).
3. Enter a **Branch Name**.
4. Click the **Create branch** button.

<img src="https://mintcdn.com/bruno-a6972042-mintlify-runrequest-response-fields-17751331/jXZIPji0x_-zXRMz/images/screenshots/git-integration/git-gui/7-create-branch.webp?fit=max&auto=format&n=jXZIPji0x_-zXRMz&q=85&s=6a58df96ceb20c9812b9bafff5eac2d4" alt="Create Branch" width="2372" height="1794" data-path="images/screenshots/git-integration/git-gui/7-create-branch.webp" />

Once the branch is created, you can start making changes to the branch.

#### Branch Checkout

1. Click on **main**.
2. Select the branch you want to switch to.

<img src="https://mintcdn.com/bruno-a6972042-mintlify-runrequest-response-fields-17751331/jXZIPji0x_-zXRMz/images/screenshots/git-integration/git-gui/9-branch-checkout.webp?fit=max&auto=format&n=jXZIPji0x_-zXRMz&q=85&s=dda055eae8f43c5bd9dff002ad08a2b3" alt="Create Branch" width="2366" height="1784" data-path="images/screenshots/git-integration/git-gui/9-branch-checkout.webp" />

3. Now you're switched to your selected branch.

### Stash Changes

Stashing allows you to temporarily save your uncommitted local changes (both staged and unstaged modified tracked files) and revert your working directory to a clean state matching the last commit. This is especially useful for quickly switching context or handling urgent tasks without having to commit unfinished work.

1. Go to **Git UI**.
2. When you have unstaged changes, click on **Stashes**.
3. Enter a **Stash Message** and click the **Stash files** button.

<img src="https://mintcdn.com/bruno-a6972042-mintlify-runrequest-response-fields-17751331/jXZIPji0x_-zXRMz/images/screenshots/git-integration/git-gui/11-stash-files.webp?fit=max&auto=format&n=jXZIPji0x_-zXRMz&q=85&s=e161ac83f42f6e0fb3960ee8ed7d4db0" alt="Stash Changes" width="2766" height="1794" data-path="images/screenshots/git-integration/git-gui/11-stash-files.webp" />

4. Your local changes are saved temporarily so you can work on something else or switch branches without losing your changes.
5. Stashes can be viewed, deleted, or applied to restore your changes later.

<img src="https://mintcdn.com/bruno-a6972042-mintlify-runrequest-response-fields-17751331/jXZIPji0x_-zXRMz/images/screenshots/git-integration/git-gui/12-stash-options.webp?fit=max&auto=format&n=jXZIPji0x_-zXRMz&q=85&s=5834d2d03c956b01c2766e030843f245" alt="Stash Changes" width="2762" height="1790" data-path="images/screenshots/git-integration/git-gui/12-stash-options.webp" />

### Merge Conflict Resolution

When conflicts arise during pull or stash operations, Bruno provides a visual conflict resolution interface.

#### Conflict Detection

When conflicts are detected, Bruno provides information and options to resolve conflicts:

* **Commits behind and ahead of remote**
* **Conflicting changes identified**
* **Abort** - Abort the operation and restore previous state

<img src="https://mintcdn.com/bruno-a6972042-mintlify-runrequest-response-fields-17751331/jXZIPji0x_-zXRMz/images/screenshots/git-integration/git-gui/13-merge-remotes.webp?fit=max&auto=format&n=jXZIPji0x_-zXRMz&q=85&s=d7b2522f6c4f3337d93fb5843d40d371" alt="Conflict Detection" width="2792" height="1842" data-path="images/screenshots/git-integration/git-gui/13-merge-remotes.webp" />

#### Visual Conflict Editor

The conflict editor provides:

* **File List** - Shows all conflicted and non-conflicted files with status indicators
* **Diff View** - For each conflict, choose to:
  * Accept Incoming (remote version)
  * Accept Current (local version)
  * Accept Both (merge both versions)

Once all conflicts are resolved, enter a commit message and click the **Lock** icon to complete the merge.

<img src="https://mintcdn.com/bruno-a6972042-mintlify-runrequest-response-fields-17751331/jXZIPji0x_-zXRMz/images/screenshots/git-integration/git-gui/14-merge-conflicts.webp?fit=max&auto=format&n=jXZIPji0x_-zXRMz&q=85&s=9a94a2e61855d81e076481b9a9a153b6" alt="Conflict Editor" width="2804" height="1860" data-path="images/screenshots/git-integration/git-gui/14-merge-conflicts.webp" />
