Skip to content

path

Returns the path to the .git folder for normal repositories or the repository itself for bare repositories.

Signature

ts
class Repository {
  path(): string;
}

Returns

  • string

    The path to the .git folder for normal repositories or the repository itself
    for bare repositories.

Released under the MIT License.