Skip to content

id ​

Get the id (SHA1) of a repository object.

Signature ​

ts
class GitObject {
  id(): string;
}

Returns ​

  • string

    ID(SHA1) of a repository object.

Released under the MIT License.