---
title: git_repo_update
url: /docs/ai-agents/mcp-tools/git-repos/git_repo_update/
canonical_url: https://blossom88.com/docs/ai-agents/mcp-tools/git-repos/git_repo_update/
markdown_url: https://blossom88.com/docs/ai-agents/mcp-tools/git-repos/git_repo_update.md
summary: Change an Environment's repository, branch or folder.
categories:
  - mcp
  - reference
---

# git_repo_update

Change an Environment's repository, branch or folder.

| | |
|---|---|
| Access | Consequential change; requires confirmation |
| Same as | [`blossom git_repo:update`](/docs/reference/cli/git_repo/update/) |

## Arguments

| Argument | Type | Description |
|---|---|---|
| `yes` | boolean | true once the person confirms. |
| `id` | string | Git source id. Required. |
| `data` | object | Only the Git source fields to change. Required. |
| `data.clone_url` | string | Repository URL. |
| `data.branch` | string | Branch to deploy. |
| `data.repository_type` | string | Repository type. |
| `data.subfolder` | string | Folder of a larger repository to deploy. |
| `data.git_provider_id` | string | Connected Git provider for a private repository. |
| `data.git_ssh_key_id` | string | Git SSH key. |

## Example

```json
{"id":"git_repo-100","data":{"branch":"main"},"yes":true}
```
