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

Method branchOff

ng-dev/utils/testing/sandbox-testing.ts:62–65  ·  view source on GitHub ↗

Branches off the current repository `HEAD`.

(newBranchName: string)

Source from the content-addressed store, hash-verified

60
61 /** Branches off the current repository `HEAD`. */
62 branchOff(newBranchName: string): this {
63 runGitInTmpDir(['checkout', '-B', newBranchName]);
64 return this;
65 }
66
67 /** Switches to an existing branch. */
68 switchToBranch(branchName: string): this {

Calls 1

runGitInTmpDirFunction · 0.85

Tested by

no test coverage detected