> ## 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 prev

> Jump to the previous branch in the stack

## Name

`mg prev` — Switch to the "previous" parent branch in your current stack.

## Synopsis

```bash theme={null}
mg prev
```

## Description

* Lets you move upwards in your stack. For instance, from `feature_2` back to `feature_1`.

## Examples

```bash theme={null}
# Move from feature_2 to feature_1
mg prev
```

<Note>
  * If you're already on the root branch (e.g., `main`), `mg prev` does nothing. - In a multi-parent
    scenario, cubic will pick the direct parent listed for your branch.
</Note>
