GitNifty
    Preparing search index...

    Type Alias GitRef

    GitRef: "HEAD" | `${"HEAD~" | "HEAD^"}${number}` | string

    A Git reference to identify a specific commit, branch, or tag.

    This can be used to describe a commit other than the current HEAD.

    Common examples:

    • "HEAD": The current commit.
    • "HEAD~1": One commit before HEAD.
    • "HEAD^2": Second parent of a merge commit.
    • "main" or any branch name.
    • A full or abbreviated commit SHA.