Skip to content

setUpstream ​

Set the upstream configuration for a given local branch.

Signature ​

ts
class Branch {
  setUpstream(upstreamName: string): void;
}

Parameters ​

  • upstreamNamerequired · string

    Branch name to set as upstream.

Released under the MIT License.