Skip to content

findUpstream ​

Return the reference supporting the remote tracking branch, given a local branch reference.

Signature ​

ts
class Branch {
  findUpstream(): Branch | null;
}

Returns ​

  • null | Branch

    The reference supporting the remote tacking branch.

Released under the MIT License.