---
name: "stg-redo"
section: "1"
platform: "linux"
package: "stgit"
version: "0.18-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/stg-redo"
---

# stg-redo(1)

Undo the last undo operation

## NAME

stg-redo - Undo the last undo operation

## SYNOPSIS

```
stg redo
```

## DESCRIPTION

If the last command was an undo, reset the patch stack to the state it had before the undo. Consecutive invocations of "stg redo" will undo the effects of consecutive invocations of "stg undo".

It is an error to run "stg redo" if the last command was not an undo.

## OPTIONS

- \-n N, --number N

  Undo the last N undos.

- \--hard

  Discard changes in your index/worktree.

## STGIT

Part of the StGit suite - see [**stg**(1)](/stg/1.md)
