Further refinements for unstaging files from either from the index or from the working-tree. Alternatively, resetting both.

interface Unstage {
    reset?: "all" | "index" | "working-tree";
    treeish?: string;
}

Properties

Properties

reset?: "all" | "index" | "working-tree"

What to reset; the state of the index, the working-tree, or both. If not given, all will be used.

treeish?: string

The treeish to reset to. Defaults to HEAD.