GitButler ⧓

Commands
>_

but unapply

Remove a branch and the rest of its stack from the workspace, keeping them to apply again

later.

If you want to unapply an applied branch from your workspace (effectively stashing it) so you can work on other branches, you can run but unapply <branch-name>.

This will remove the changes in that branch from your working directory and you can re-apply it later when needed. You will then see the branch as unapplied in but branch list.

Unapplying the last branch checks out the target's local tracking branch, if available. The unapplied branch is preserved and stays unapplied when switching back with but switch --workspace.

The identifier can be:

  • A CLI ID pointing to a stack or branch (e.g., "bu" from but status)
  • A branch name

If a branch name (or an identifier pointing to a branch) is provided, the entire stack containing that branch will be unapplied.

For more details about CLI IDs, see but help cli-ids.

Usage: but unapply <TARGET>

Arguments

  • <TARGET> — The branch or stack to unapply (required)

Last updated on

On this page

Edit on GitHubGive us feedback