1STG-PUSH(1) StGit Manual STG-PUSH(1)
2
3
4
6 stg-push - Push one or more patches onto the stack
7
9 stg push [options] [--] [<patch1>] [<patch2>] [<patch3>..<patch4>]
10
12 Push one or more patches (defaulting to the first unapplied one) onto
13 the stack. The push operation allows patch reordering by commuting them
14 with the three-way merge algorithm. If there are conflicts while
15 pushing a patch, those conflicts are written to the work tree, and the
16 command halts. Conflicts raised during the push operation have to be
17 fixed and the git add --update command run (alternatively, you may undo
18 the conflicting push with stg undo).
19
20 The command also notifies when the patch becomes empty (fully merged
21 upstream) or is modified (three-way merged) by the push operation.
22
24 -a, --all
25 Push all the unapplied patches.
26
27 -n NUMBER, --number NUMBER
28 Push the specified number of patches.
29
30 With a negative number, push all but that many patches.
31
32 --reverse
33 Push the patches in reverse order.
34
35 --set-tree
36 Push the patches, but don’t perform a merge. Instead, the resulting
37 tree will be identical to the tree that the patch previously
38 created.
39
40 This can be useful when splitting a patch by first popping the
41 patch and creating a new patch with some of the changes. Pushing
42 the original patch with --set-tree will avoid conflicts and only
43 the remaining changes will be in the patch.
44
45 -k, --keep
46 Keep the local changes.
47
48 -m, --merged
49 Check for patches merged upstream.
50
52 Part of the StGit suite - see stg(1)
53
54
55
56
57StGit 02/03/2019 STG-PUSH(1)