---
title: "Create GitHub repository"
method: POST
path: "/v1/git/repositories/{id}/github"
tags: ["git"]
---

# Create GitHub repository

`POST /v1/git/repositories/{id}/github`

Creates a new GitHub repository and sets it as the origin for a local repository

## Path parameters

- `id` string, required

## Request body

- InternalHandlersCreateGitHubRepositoryRequest — Request to create a new GitHub repository and set it as origin
  - `description` string — Repository description
  - `is_private` boolean — Whether the repository should be private
  - `name` string — Repository name

## Response `200`

OK

- InternalHandlersCreateGitHubRepositoryResponse — Response containing the created repository information
  - `message` string — Success message
  - `url` string — URL of the created repository

## Other responses

- `400` — Invalid request
- `500` — Internal server error

## Changes

- **2025-08-14** `54a2c4d474f7` — 1 info
  - endpoint added
- **2025-07-18** `21270d5158bd` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/wandb/apis/catnip-container-api/changes/v1/git/repositories/:id/github/post.md)

---

[API](https://skmtc.dev/wandb/apis/catnip-container-api.md) · [All operations](https://skmtc.dev/wandb/apis/catnip-container-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wandb/catnip-container-api/revisions/a075b0fa501a/schema)
