MCPcopy Create free account
hub / github.com/angular/dev-infra / pushHeadToRemoteBranch

Function pushHeadToRemoteBranch

ng-dev/release/publish/actions.ts:304–307  ·  view source on GitHub ↗

Pushes the current Git `HEAD` to the given remote branch in the configured project.

(branchName: string)

Source from the content-addressed store, hash-verified

302
303 /** Pushes the current Git `HEAD` to the given remote branch in the configured project. */
304 protected async pushHeadToRemoteBranch(branchName: string) {
305 // Push the local `HEAD` to the remote branch in the configured project.
306 this.git.run(['push', '-q', this.git.getRepoGitUrl(), `HEAD:refs/heads/${branchName}`]);
307 }
308
309 /**
310 * Pushes the current Git `HEAD` to a fork for the configured project that is owned by

Callers

nothing calls this directly

Calls 2

runMethod · 0.45
getRepoGitUrlMethod · 0.45

Tested by

no test coverage detected