> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/open-source/use-harness-open-source/gitspaces/develop-in-gitspaces/source-control.md).

# Using Source Control in your Gitspaces

### Using the supported source control management tools <a href="#using-the-supported-source-control-management-tools" id="using-the-supported-source-control-management-tools"></a>

{% tabs %}
{% tab title="Using GitHub Repositories" %}
GitHub CLI comes pre-installed with VS Code IDE, so you just need to login to use.

```sh
git config --global user.email "you@example.com" 
git config --global user.name "Your Name"
```

{% endtab %}

{% tab title="Using GitLab Repositories" %}

1. [Install](https://gitlab.com/gitlab-org/cli/#installation) the glab CLI.
2. [Authenticate](https://gitlab.com/gitlab-org/cli/-/blob/main/README.md#authentication) the user.
   {% endtab %}

{% tab title="Using Bitbucket Repositories" %}

1. Follow the steps described [here](https://support.atlassian.com/bitbucket-cloud/docs/get-started-with-vs-code/) to configure Bitbucket.
   {% endtab %}
   {% endtabs %}

### Commit changes to upstream <a href="#commit-changes-to-upstream" id="commit-changes-to-upstream"></a>

1. Once you've made a few changes, you can use the **integrated termina**l or the [**source view**](https://code.visualstudio.com/docs/sourcecontrol/overview#_commit) to commit your work. Here are the steps to use the Source Control view for this example.
2. To stage your changes, click **+** next to the file to stage the changes, or **next** to Changes if you've changed multiple files and you want to **stage** them all.
3. To **commit** your staged changes, type a **commit message** describing the change you've made, then click **Commit**.
4. Now Sync Changes, it will redirect you to login and authorize to your Source Provider. After authorization, your changes will be committed to your fork.
5. And that’s it! You have successfully used Harness Open Source Gitspaces for development

### How to open a pull request <a href="#how-to-open-a-pull-request" id="how-to-open-a-pull-request"></a>

Follow the instructions on [pushing and pulling remote changes](https://code.visualstudio.com/docs/sourcecontrol/intro-to-git#_pushing-and-pulling-remote-changes).
