Skip to content

remove

Remove an entry from the reflog.

Signature

ts
class Reflog {
  remove(i: number, rewritePreviousEntry?: boolean): void;
}

Parameters

  • irequired · number

    Index of the entry to remove.

  • rewritePreviousEntrynull | boolean

    Whether to rewrite the previous entry. Defaults to false.

Errors

  • Error

    Throws error if the index is invalid or if removal fails.

Released under the MIT License.