# Hermoso: push_site_to_github · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/publish/push_site_to_github/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/) / push_site_to_github

# `push_site_to_github`

Push a hosted project to GitHub destructive

Area: LAUNCH PAGES · [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## Description

Commit a hosted project's files (the live version, or version) to a GitHub repository (repo owner/name, branch default main) as one new commit: the branch's files become exactly the project's files, its history is kept, nothing is force-pushed, and a repository that does not exist is created private. Needs a GitHub fine-grained token from the user with Contents read and write (token; saveToken:true keeps it write-only for next time). Without confirm:true nothing is pushed; call again with confirm:true once the user says yes. Free.

## Parameters

Parameter Type Description

`name` required `string` the project (its hermoso.page name)

`repo` required `string` owner/name, e.g. acme/spring-sale-site

`branch` `string` default main

`version` `number`

`token` `string` the user's GitHub token; omit to use a saved one

`saveToken` `boolean`

`message` `string` the commit message

`confirm` `boolean` true only after the user approved it

## Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and `POST https://app.hermoso.ai/v1/tools/push_site_to_github`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"push_site_to_github","arguments":{"name":"<string>","repo":"<string>"}}}`
**CLI**

`hermoso call push_site_to_github --json '{"name":"<string>","repo":"<string>"}'`

## Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See [Credits & costs](https://hermoso.ai/docs/credits/).

## Related tools

- [export_site](https://hermoso.ai/docs/reference/publish/export_site/) Download a hosted project as a zip
- [site_logs](https://hermoso.ai/docs/reference/publish/site_logs/) Read a hosted project's server logs
- [set_site_spend_cap](https://hermoso.ai/docs/reference/publish/set_site_spend_cap/) Cap hosting spend
- [export_site_db](https://hermoso.ai/docs/reference/publish/export_site_db/) Export a hosted project's database
- [list_site_usage](https://hermoso.ai/docs/reference/publish/list_site_usage/) Hosting usage of hosted projects
- [list_site_db_backups](https://hermoso.ai/docs/reference/publish/list_site_db_backups/) List a hosted project's database snapshots
- [rollback_page](https://hermoso.ai/docs/reference/publish/rollback_page/) Roll a hosted project back
- [restore_site_db](https://hermoso.ai/docs/reference/publish/restore_site_db/) Restore a hosted project's database
- [delete_site_secret](https://hermoso.ai/docs/reference/publish/delete_site_secret/) Delete a site secret
- [site_email_report](https://hermoso.ai/docs/reference/publish/site_email_report/) A hosted project's email report

[All 728 Publishing & scheduling tools](https://hermoso.ai/docs/reference/publish/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
