Scroll to navigation

STG-RESET(1) StGit Manual STG-RESET(1)

NAME

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

SYNOPSIS

stg reset [--hard] [<committish> [<patchname>...]]
stg reset --hard

DESCRIPTION

Reset the patch stack to an earlier state. If no state is specified, reset only the changes in the worktree.

The state is specified with a commit id from the stack log, which may be viewed with stg-log(1). Patch name arguments may optionally be provided to limit which patches are reset.

OPTIONS

--hard

Discard changes in the index and worktree

STGIT

Part of the StGit suite - see stg(1)

09/20/2024 StGit 2.4.12