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

# mg orphan

> Remove a branch from cubic's tracking

## Name

`mg orphan` — Remove a branch from cubic's stack management.

## Synopsis

```bash theme={null}
mg orphan              # Orphan the current branch
mg orphan <branch_name> # Orphan a specified branch
```

## Description

* Disassociates `<branch_name>` from your cubic stack (does not delete the branch from Git).

* Child branches remain but will still point to the old parent unless reparented or orphaned as well.

## Examples

```bash theme={null}
# Orphan the branch "feature_2" from the stack
mg orphan feature_2

# Orphan the current branch you're on
mg orphan
```

<Note>
  * This is **irreversible** in cubic's metadata; to bring it back, use [mg
    adopt](/reference/mg-adopt). - Orphaned branches won't appear in `mg list`.
</Note>
