---
name: "glab-stack-prev"
section: "1"
platform: "linux"
package: "glab"
version: "1.126.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/glab-stack-prev"
---

# glab-stack-prev(1)

Move to the previous diff in the stack. (EXPERIMENTAL)

## NAME

glab-stack-prev - Move to the previous diff in the stack. (EXPERIMENTAL)

## SYNOPSIS

**glab stack prev \[flags\]**

## DESCRIPTION

Checks out the branch of the previous diff in the stack.

This feature is an experiment and is not ready for production use. It might be unstable or removed at any time. For more information, see https://docs.gitlab.com/policy/development\_stages\_support/.

## OPTIONS INHERITED FROM PARENT COMMANDS

**-h**, **--help**\[=false\]\
 	Show help for this command.

**-R**, **--repo**=""\
 	Select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted.

## EXAMPLE

```
glab stack prev
```

## SEE ALSO

**[glab-stack(1)](/glab-stack/1.md)**
