# Git controls overview

Take a quick look at the Git controls in UI Bakery :point\_down:

<figure><img src="/files/3jbHgIP1ImhV65mioDiN" alt=""><figcaption></figcaption></figure>

1. **Branches selector** - switch between branches
2. **Sync branches** - sync the list of branches with UI Bakery
3. **Pull/Force pull** - pull the latest changes from the selected branch/force pull current branch changes to UI Bakery

{% hint style="warning" %}
*Force pull* action overwrites your local uncommitted changes with the current remote branch. It can be helpful in situations where automatic project model updates or conflicting Git changes prevent a standard pull or revert.
{% endhint %}

4. **Commit & Push** - commit and push the changes to the selected branch
5. **Open Pull Request** - create a pull request for the selected branch

## Changing the default branch

Some teams may be working on the same project and it may not be convenient to share the same `main` branch. In such cases, you can set a specific branch as the **default** one for your team only. \
\
You can do this by opening the *Git* tab in the footer panel and clicking the **Set current branch as default** button. Once set, the system will operate in the following way:

* The project will automatically load from this branch.
* It will become the base branch for all new branches.
* It will be used as the default target for `pull` requests.
* It will act the source branch when duplicating projects.
* If Git is disconnected, the state will revert to the default branch's state.
* The default branch cannot be deleted from the database (ID-based).

<figure><img src="/files/OrQxz56UEoKStCDII54t" alt=""><figcaption></figcaption></figure>


---

# 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.uibakery.io/concepts/source-control/getting-started.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.
