'\" t
.\" Title: stg-pop
.\" 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\-POP" "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-pop \- Pop one or more patches from the stack
.SH "SYNOPSIS"
.sp
.nf
\fIstg\fR pop [options] [\-\-] [] [] [\&.\&.]
.fi
.SH "DESCRIPTION"
Pop the topmost patch or a range of patches from the stack\&. The command fails if there are conflicts or local changes (and \-\-keep was not specified)\&.
A series of pop and push operations are performed so that only the patches passed on the command line are popped from the stack\&. Some of the push operations may fail because of conflicts ("stg undo" would revert the last push operation)\&.
.SH "OPTIONS"
.PP
\-a, \-\-all
.RS 4
Pop all the applied patches\&.
.RE
.PP
\-n NUMBER, \-\-number NUMBER
.RS 4
Pop the specified number of patches\&.
With a negative number, pop all but that many patches\&.
.RE
.PP
\-k, \-\-keep
.RS 4
Keep the local changes\&.
.RE
.SH "STGIT"
Part of the StGit suite \- see \fBstg\fR(1)