# tigris buckets merge

Merge a fork's changes back into its source bucket. By default the source is resolved automatically from the fork's parent; use `--into` to target a different source bucket.

## Usage[​](#usage "Direct link to Usage")

```
tigris buckets merge <fork> [flags]

t3 b merge <fork> [flags]
```

You are asked to confirm before the source bucket is written. Pass `--yes` (`-y`) to skip the prompt in scripts and other non-interactive shells. Add `--json` for machine-readable output, which includes the resulting snapshot version.

## Flags[​](#flags "Direct link to Flags")

| Name                             | Required | Default       | Description                                                              |
| -------------------------------- | -------- | ------------- | ------------------------------------------------------------------------ |
| `--into`, `--source`             | No       | fork's parent | Source bucket to merge into. Defaults to the fork's parent source bucket |
| `--from-snapshot`, `--from-snap` | No       | —             | Merge from a specific snapshot of the fork rather than its current state |
| `--yes`, `-y`                    | No       | —             | Skip the confirmation prompt                                             |
| `--json`                         | No       | —             | Output as JSON, including the resulting snapshot version                 |

## Examples[​](#examples "Direct link to Examples")

```
# Merge a fork back into its source (parent resolved automatically)

tigris buckets merge my-fork



# Merge into an explicit source bucket

tigris buckets merge my-fork --into my-bucket



# Merge from a specific snapshot of the fork

tigris buckets merge my-fork --from-snapshot 1765889000501544464



# Skip the confirmation prompt (e.g. in scripts)

tigris buckets merge my-fork --yes
```

## Related[​](#related "Direct link to Related")

* [`buckets rebase`](/docs/cli/buckets/rebase/.md) — update a fork with the latest changes from its source
* [`buckets create --fork-of`](/docs/cli/buckets/create/.md) — create a fork of a bucket
* [`buckets list --forks-of`](/docs/cli/buckets/list/.md) — list the forks of a bucket
