> For the complete documentation index, see [llms.txt](https://studio-docs.sandbox.game/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://studio-docs.sandbox.game/source-control/setting-up-git.md).

# Setting up Git

Use this process when you need Git installed on your Windows computer before connecting a Sandbox Studio project to version control. Git tracks project changes so you can review work, save checkpoints, and collaborate safely.

## Step 1: Download Git for Windows

Download the Git for Windows installer from the official Git website: <https://git-scm.com/downloads>.

1. Open <https://git-scm.com/downloads> in your browser.
2. Choose the 64-bit Git for Windows installer if your computer is modern Windows.
3. Save the installer to your Downloads folder.

![](https://content.gitbook.com/content/WgFjStdWWXj1Wc6xnrcJ/blobs/Olhd26tqZYYyXfLXbGqB/Unknown%20image)

## Step 2: Run the installer

Open the downloaded installer and follow the setup wizard.

1. Accept the license agreement.
2. Keep the default installation location unless your team tells you otherwise.
3. Keep the default components selected.

![](https://content.gitbook.com/content/WgFjStdWWXj1Wc6xnrcJ/blobs/1o1TChfyWDiDzZqunZbs/Unknown%20image)

The setup wizard shows the default installation choices before installation continues.

## Step 3: Keep the default terminal options

Use the installer defaults for editor, PATH, HTTPS, and line ending options unless your team has a different standard.

1. Choose the default Git editor if you are not sure.
2. Choose the option that lets Git work from the command line and third-party software.
3. Keep the recommended HTTPS and line ending settings.

{% hint style="info" %}
*TIP: The default options work for most Sandbox Studio creators and keep Git available to Git Bash, Fork, and other tools.*
{% endhint %}

## Step 4: Finish the installation

Complete the installer and close the setup wizard.

1. Click Install.
2. Wait for the installer to finish.
3. Leave Launch Git Bash checked if you want to confirm the installation right away.

The installer confirms Git has finished installing.

## Step 5: Confirm Git is installed

Open Git Bash or a terminal and check the installed Git version.

1. Open Git Bash from the Start menu.
2. Type git --version and press Enter.
3. Confirm the terminal prints a Git version number.

git --version

![](https://content.gitbook.com/content/WgFjStdWWXj1Wc6xnrcJ/blobs/EowIoX2xrDc050bfPEAq/Unknown%20image)

The terminal shows a Git version, which confirms Git is available.

{% hint style="info" %}
*TIP: If Windows says git is not recognized, close the terminal and open it again. If that does not work, rerun the installer and confirm Git was added to PATH.*
{% endhint %}

## Step 6: Set your Git identity

Set the name and email address Git will attach to your commits.

1. Run `git config --global user.name "Your Name"`.
2. Run `git config --global user.email "you@example.com"`.
3. Check the values with `git config --global --list`.

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

git config --global --list

{% hint style="warning" %}
*WARNING: Use an email address you are comfortable attaching to commits. Commits can be visible to collaborators or public repositories.*
{% endhint %}

## Step 7: Confirm the setup

Check that Git is installed and your identity is configured before connecting a project.

1. Run git --version.
2. Run git config --global user.name.
3. Run git config --global user.email.

The terminal confirms Git is installed and your commit identity is ready.

## What You've Done

You have installed Git for Windows, confirmed it works from the terminal, and set the name and email Git will use for commits. Next, [connect Git to a Sandbox Studio project](/source-control/connecting-git-to-your-project.md) so your project changes can be tracked.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://studio-docs.sandbox.game/source-control/setting-up-git.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
