---
title: "Publish to a named remote/branch"
method: POST
path: "/git/publish"
tags: ["Git"]
---

# Publish to a named remote/branch

`POST /git/publish`

## Request body

- object
  - `remote` string, required
  - `branch` string, required

## Response `200`

Success

## Changes

- **2019-06-05** `0de5431fe1c5` — 3 breaking
  - request body became required
  - the request property `branch` became required
  - the request property `remote` became required
- **2019-06-03** `3235412fb260` — 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/publish/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)
