Skip to content

af split

Split the workspace's change in two

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

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.

Examples

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

Type to search…

↑↓ navigate↵ selectEsc close