# Quick Git Setup

Fast track Git setup for Saturn Cloud resources

## Quick Git Setup for Saturn Cloud

This guide helps you set up Git integration quickly so you can attach repositories to your resources during creation.

## 1. Set Up SSH Keys (One-Time Setup)

1. Go to **User Profile** → **Access Keys**.
2. Find the **Git SSH Key** section.
3. Click **Submit**.
4. Copy the public key and add it to your Git host (GitHub, GitLab, Bitbucket).

## 2. Add Your Repository to Saturn Cloud

1. Go to **Git Repositories**.
2. Click **New** button.
3. Enter your repository URL (the same URL you’d use for `git clone`).
4. Click **Submit**.

## 3. Attach to Your Resource

When creating a Jupyter Server or R Server:

1. In the creation form, find the **Git Repositories** section.
2. Select your repository from the dropdown.
3. Choose the branch/commit you want to use.
4. Click **Create**.

Your code will be automatically cloned when the resource starts!

## Need Help?

- **[Full Git documentation](https://saturncloud.io/docs/user-guide/how-to/connect/gitrepo/)** - Complete guide with all options
- **[GitHub SSH setup](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account)** - GitHub-specific instructions
- **[GitLab SSH setup](https://docs.gitlab.com/ee/user/ssh.html)** - GitLab-specific instructions
