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

Function createLocalBranchFromHead

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

* Creates a local branch from the current Git `HEAD`. Will override * existing branches in case of a collision.

(branchName: string)

Source from the content-addressed store, hash-verified

297 * existing branches in case of a collision.
298 */
299 protected async createLocalBranchFromHead(branchName: string) {
300 this.git.run(['checkout', '-q', '-B', branchName]);
301 }
302
303 /** Pushes the current Git `HEAD` to the given remote branch in the configured project. */
304 protected async pushHeadToRemoteBranch(branchName: string) {

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected