---
title: "Clone a repo"
method: POST
path: "/git/clone"
tags: ["Git"]
---

# Clone a repo

`POST /git/clone`

## Request body

- object
  - `repoPath` string, required — Git repo url
  - `destinationFolder` string — Absolute path on your file system
  - `localPath` string — Local path of the cloned folder
  - `options` object — Optional git clone options

## Response `200`

Success

---

[API](https://skmtc.net/materiahq/apis/materia-server.md) · [All operations](https://skmtc.net/materiahq/apis/materia-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/materiahq/materia-server/versions/f4e80651bb93/schema)
