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

NAME

6       stg-reset - Reset the patch stack to an earlier state
7

SYNOPSIS

9       stg reset [options] [--] [<state> [<patchnames>]]
10

DESCRIPTION

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

OPTIONS

21       --hard
22           Discard changes in your index/worktree.
23

STGIT

25       Part of the StGit suite - see stg(1)
26
27
28
29StGit 1.1                         07/23/2021                      STG-RESET(1)
Impressum