---
title: "af squash"
description: "Move edits from the workspace's change into another open change"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.forge.workreef.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# af squash

<!-- Generated by tools/gen-reference.mjs from `af squash --help`. Change the help text in crates/atoll-forge-cli/src/main.rs, then run `npm run gen:reference`. -->

By default all of the change's edits move into the change directly below it. Name PATHS to move only the edits at those paths. The workspace's change remains, with whatever edits are left.

## Usage

```text
af squash [OPTIONS] [PATHS]...
```

## Arguments

- `[PATHS]...`

  Glob patterns, from the repository root, selecting the edits to move; all if omitted

## Options

- `--into <INTO>`

  Change to move the edits into, by change ID; defaults to the change below

- `--into-at <INTO_AT>`

  Latest commit of the --into change as you last saw it, in hex

  The squash is refused if that change has moved since, so it never overwrites work you haven't seen.

## Global options

Every `af` command also takes the [global options](https://docs.forge.workreef.dev/reference/af/#global-options).

## Examples

```sh
af squash
af squash src/parser.rs --into kxqpzvom
```

Source: https://docs.forge.workreef.dev/reference/af/squash/index.mdx
