# Branch

You can easily manage branches using the **\[Branch]** tab(<img src="/files/LXgJqyuhQn4zS6b4AHVW" alt="" data-size="line">) in the **Git Sidebar**. It shows the list of currently created branches and indicates the branch you are working on.

You can change the branch you want to work on by selecting a branch from the branch list.

{% hint style="info" %}
Git provides different working directories for different branches, so if you switch to a different branch, your working directory will also change.
{% endhint %}

The Branch tab offers 3 commands. You can select a single branch to execute a command.

* **Create a new Branch**\
  Creates a new branch. Click the button and a pop-up window will appear where you can enter a name for the branch. Enter the branch name and click the **\[OK]** button to complete the branch creation.
* **Merge into selected branch**\
  Merges the selected branch into the desired branch.
* **Checkout new branch**\
  Moves the working directory to the selected branch. After clicking the button, the **\[Branch]** tab and Project Sidebar will update and you will see that your current location has been moved to the selected branch.

When you create a branch, you can select a starting point for the branch.

You can select the parent commit of the current working copy, a specific commit, a specific branch, a specific tag, or select a commit directly from the list of the last 15 commits.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.arkain.io/user-guide/workspace/source-code-management-with-git/branch.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
