---
title: "af split"
description: "Split the workspace's change in two"
---

> 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 split

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

The change keeps its edits at PATHS. The remaining edits move to a new change on top of it, which becomes the workspace's change.

## Usage

```text
af split [OPTIONS] <PATHS>...
```

## Arguments

- `<PATHS>...`

  Glob patterns, from the repository root, selecting the edits the change keeps

## Options

- `-m, --message <MESSAGE>`

  New description for the original change; the new change takes its old description

## Global options

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

## Examples

```sh
af split src/parser.rs -m "Fix the parser first"
```

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