1STG-RESET(1) StGit Manual STG-RESET(1)
2
3
4
6 stg-reset - Reset the patch stack to an earlier state
7
9 stg reset [options] [--] [<state> [<patchnames>]]
10
12 Reset the patch stack to an earlier state. If no state is specified,
13 reset only the changes in the worktree.
14
15 The state is specified with a commit id from a stack log; "stg log"
16 lets you view this log, and "stg reset" lets you reset to any state you
17 see in the log. If one or more patch names are given, reset only those
18 patches, and leave the rest alone.
19
21 --hard
22 Discard changes in your index/worktree.
23
25 Part of the StGit suite - see stg(1)
26
27
28
29StGit 1.4 01/22/2022 STG-RESET(1)