1STG-UNCOMMIT(1)                  StGit Manual                  STG-UNCOMMIT(1)
2
3
4

NAME

6       stg-uncommit - Turn regular git commits into StGit patches
7

SYNOPSIS

9       stg uncommit [--] <patch-name-1> [<patch-name-2> ...]
10       stg uncommit -n NUM [--] [<prefix>]
11       stg uncommit -t <committish> [-x]
12

DESCRIPTION

14       Take one or more git commits at the base of the current stack and turn
15       them into StGIT patches. The new patches are created as applied patches
16       at the bottom of the stack. This is the opposite of stg commit.
17
18       By default, the number of patches to uncommit is determined by the
19       number of patch names provided on the command line. First name is used
20       for the first patch to uncommit, i.e. for the newest patch.
21
22       The -n/--number option specifies the number of patches to uncommit. In
23       this case, at most one patch name may be specified. It is used as
24       prefix to which the patch number is appended. If no patch names are
25       provided on the command line, StGIT automatically generates them based
26       on the first line of the patch description.
27
28       The -t/--to option specifies that all commits up to and including the
29       given commit should be uncommitted.
30
31       Only commits with exactly one parent can be uncommitted; in other
32       words, you can’t uncommit a merge.
33

OPTIONS

35       -n NUMBER, --number NUMBER
36           Uncommit the specified number of commits.
37
38       -t TO, --to TO
39           Uncommit to the specified commit.
40
41       -x, --exclusive
42           Exclude the commit specified by the --to option.
43

STGIT

45       Part of the StGit suite - see stg(1)
46
47
48
49
50StGit                             02/03/2019                   STG-UNCOMMIT(1)
Impressum