Skip to content

name

Return the name of the given local or remote branch.

Signature

ts
class Branch {
  name(): string;
}

Returns

  • string

    The name of the given local or remote branch.

Errors

  • Error

    If the name is not valid utf-8.

Released under the MIT License.