The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

SYNOPSIS

A wrapper for a simplified subset of "git reset" functionality. The following uses are supported:

Unstage a given file (or all staged files/objects):

- ngt reset [-p | -q] <paths>

-p | --patch

Interactively select the sections of a file to un-stage.

-q | --quiet | --no-quiet

If set, only errors will be output.

For other use cases, git reset must be executed manually at each desired level, or (with caution) using "ngt foreachgit reset". For example, "ngt foreach git reset HEAD". Due to the nature of submodules, commands such as resetting to HEAD~1 are NOT supported by nuggit.

Additional use cases may be added in the future. For example, a "ngt reset HEAD~1" would execute the equivalent git command at the root level only, followed by a 'git submodule update --init --recursive'.