# Creating and Managing Branches

> Create and manage GIT branches in Studio from the Manage Branches window, accessible from the Project panel or status bar.

Add and manage branches from the **Manage Branches** window. To access it, either right-click the project node or a file in the **Project** panel and select **Manage Branches**, or use the ![](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-manage_branches-cd7efe05.png) branch menu in the status bar.

![Manage Branches window listing branches with options to add, refresh, and delete](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-169097-e7f9b10e.webp)

* To add a branch:
  1. Select a branch in the table, and then select **Plus** ![Plus button for adding a new branch](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-Add_Feed_Button-c5568570.png) at the top of the window.
  2. Enter a name for the branch, select **Create branch from** *branch_name*, and then select **Save**. The branch is added to the list.
* To refresh the list of branches, click **Refresh** ![Refresh button for reloading the branch list](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-git_refresh-aadd121c.png) at the top of the window.
* To delete a local branch, select it, and then click **Delete** ![Delete button for removing a local branch](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-delete_branch-c29e6668.png) at the top of the window.
* To manage branches, right-click any branch and select one of the options from the menu:
  + The **Checkout branch** option switches to the selected branch.
  + The **Rebase** option rebases the current branch onto the selected branch.
  + The **Merge** option merges the selected branch into the current branch. To merge a branch into the master of a GIT remote repository, you need to have the master branch checked out in Studio and then merge the modified branch into master.
* To switch between branches, open the ![Branch menu icon in the Studio status bar](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-manage_branches-cd7efe05.png) branch menu in the status bar, and then select the branch to switch to from the list of recently checked out branches.
  :::note
  Branches need to be added locally in Studio from the **Manage Branches** window. Adding branches from the remote GIT repository may cause issues when trying to switch between branches.
  :::

If uncommitted changes are detected when changing branches, you have the option to take the changes to the new branch or discard them from the **Switch branch** window.

  ![Switch branch window with options to take or discard uncommitted changes](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-594049-de66555c.webp)
