# Source Control (VS Code)

BlackDiamond Studio IDE has source control management integrated and includes [Git](https://git-scm.com/) support out-of-the-box. For more information please check [Visual Studio Code Source Control](https://code.visualstudio.com/docs/editor/versioncontrol).

The integrated source control allows developers to branch, merge, and otherwise manage your repository as typically done in GitHub. This allows developers to compare code previous to deploying it.  &#x20;

![](https://3318121499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FltqydcnGV3BWCCC3QkYO%2Fuploads%2F5aHF6ik9LBLIFVdB8gcL%2Fide-close-up-.jpg?alt=media\&token=ad7fa0c6-03f8-4b1c-af2f-48469e960ad4)

The Source Control icon in the Activity Bar on the left will always indicate an **overview of how many changes** you currently have in your repository. Selecting the icon will show you the details of your current repository changes: **CHANGES**, **STAGED CHANGES,** and **MERGED CHANGES**.

Clicking each item will show you in detail **the textual changes within each file**. Note that for unstaged changes, the editor on the right still lets you edit the file: feel free to use it!

You can also find indicators of the **status of your repository** in the bottom-left corner of the IDE: the **current branch**, **dirty indicators**, and the number of **incoming and outgoing commits** of the current branch. You can **checkout** any branch in your repository by clicking that status indicator and selecting the Git reference from the list.


---

# 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.gapvelocity.ai/blackdiamond-studio-or-mobilize.net/blackdiamond-studio-documentation/online-code-editor/source-control-vs-code.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.
