---
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

## Changes

- **2019-06-05** `0de5431fe1c5` — 1 info
  - endpoint added
- **2018-12-30** `d0e0b0a4b3ee` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/materiahq/apis/materia-server/changes/git/clone/post.md)

---

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