Skip to content

gitRevParse

gitRevParse(rev, options?): Promise<string>

Defined in: rev-parse.ts:12

Resolves rev (e.g. "HEAD", a branch name, or a short SHA) to its full commit SHA at options.execOptions.cwd.

string

GitCommandOptions

Promise<string>

When rev cannot be resolved.

https://git-scm.com/docs/git-rev-parse