---
title: "Sync a Git repo to this Diversion repo"
method: POST
path: "/repos/{repo_id}/sync"
tags: ["Repository Manipulation"]
---

# Sync a Git repo to this Diversion repo

`POST /repos/{repo_id}/sync`

Sync all history from Git. The repo must already be associated with a Git repo (see import).

## Response `202`

Sync started asynchronously.

## Other responses

- `default` — An error occurred

---

[API](https://skmtc.net/diversion/apis/diversion-core-api.md) · [All operations](https://skmtc.net/diversion/apis/diversion-core-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/diversion/diversion-core-api/versions/38a18aba804b/schema)
