'\" t .\" Title: stg-undo .\" 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\-UNDO" "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-undo \- Undo the last operation .SH "SYNOPSIS" .sp .nf \fIstg\fR undo .fi .SH "DESCRIPTION" Reset the patch stack to the previous state\&. Consecutive invocations of "stg undo" will take you ever further into the past\&. .SH "OPTIONS" .PP \-n N, \-\-number N .RS 4 Undo the last N commands\&. .RE .PP \-\-hard .RS 4 Discard changes in your index/worktree\&. .RE .SH "STGIT" Part of the StGit suite \- see \fBstg\fR(1)