# Code Repository Branches

## Branch Basics

Branches are a feature of Github that allows you to fork your code and draft edits without affecting the production code until you're ready for it to do so.&#x20;

Every repository will have at least one branch called master which is the repository that Daasity uses as the source branch for running SQL code in production.

Daasity recommends creating development branches when making any changes to SQL code or script manifest files to that you can properly test your changes before putting them into production.

Using [Github Desktop](https://desktop.github.com/) you will find your current branch at the top in the middle (highlighted in red)

<figure><img src="https://content.gitbook.com/content/amTMWiPne1v1V3L7mbuj/blobs/epceS4ptEgyz6eAB6aJJ/Screenshot%202023-07-10%20at%209.26.07%20PM.png" alt=""><figcaption></figcaption></figure>

From there you can also create new branches or delete existing branches

<figure><img src="https://content.gitbook.com/content/amTMWiPne1v1V3L7mbuj/blobs/1u6yurtvvWI1KdL5nLz9/Screenshot%202023-07-10%20at%209.27.04%20PM.png" alt=""><figcaption></figcaption></figure>

## Creating a Development Branch

Select "New Branch" from the dropdown and give your branch a name

<figure><img src="https://content.gitbook.com/content/amTMWiPne1v1V3L7mbuj/blobs/xw6byRqxoGfGRuj92QU2/image.png" alt=""><figcaption></figcaption></figure>

Then publish the branch to push this into Github

<figure><img src="https://content.gitbook.com/content/amTMWiPne1v1V3L7mbuj/blobs/lbJUoCrCjy5ES5f0HJdS/image.png" alt=""><figcaption></figcaption></figure>

You can now navigate to the repository in any browser to see the repository is now available in the cloud, enabling the Daasity App to access the repository

<figure><img src="https://content.gitbook.com/content/amTMWiPne1v1V3L7mbuj/blobs/P6LJnLE1qon7Ynu8JH99/image.png" alt=""><figcaption></figcaption></figure>

Click on branches to see all the branches that are available remotely

<figure><img src="https://content.gitbook.com/content/amTMWiPne1v1V3L7mbuj/blobs/A7xo6DRi1uvhG6anxSJF/image.png" alt=""><figcaption></figcaption></figure>

## Additional Information

To learn more about [Github Desktop](https://desktop.github.com/) and how to manage branches and code development we recommend the Getting Started and Popular sections in the [GitHub Desktop documentation](https://docs.github.com/en/desktop)
