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

Method switchToBranch

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

Switches to an existing branch.

(branchName: string)

Source from the content-addressed store, hash-verified

66
67 /** Switches to an existing branch. */
68 switchToBranch(branchName: string): this {
69 runGitInTmpDir(['checkout', branchName]);
70 return this;
71 }
72
73 /** Creates a new tag for the current repo `HEAD`. */
74 createTagForHead(tagName: string): this {

Calls 1

runGitInTmpDirFunction · 0.85

Tested by

no test coverage detected