'\" t .\" Title: stg-redo .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: 03/26/2014 .\" Manual: StGit Manual .\" Source: StGit .\" Language: English .\" .TH "STG\-REDO" "1" "03/26/2014" "StGit" "StGit Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" stg-redo \- Undo the last undo operation .SH "SYNOPSIS" .sp .nf \fIstg\fR redo .fi .SH "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\&. .SH "OPTIONS" .PP \-n N, \-\-number N .RS 4 Undo the last N undos\&. .RE .PP \-\-hard .RS 4 Discard changes in your index/worktree\&. .RE .SH "STGIT" Part of the StGit suite \- see \fBstg\fR(1)