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

> Jump to the next branch in the stack

# mg next

## Name

`mg next` — Switch to the "next" child branch in your current stack.

## Synopsis

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

## Description

* If you're on `feature_1`, and the next branch is `feature_2`, it checks out `feature_2`.
* If there is no next branch, it indicates you're at the top of your stack.

## Examples

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

<Note>
  * "Next" is determined by the stacked order in `mg list`. - If your branch structure is non-linear
    or has multiple children, mg prompts you to choose which "next" to move to.
</Note>
