MCPcopy Index your code
hub / github.com/angular/angular-cli / gitClean

Function gitClean

tests/e2e/utils/git.ts:3–6  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { git, silentGit } from './process';
2
3export async function gitClean(): Promise<void> {
4 await silentGit('clean', '-df');
5 await silentGit('reset', '--hard');
6}
7
8export async function expectGitToBeClean(): Promise<void> {
9 const { stdout } = await silentGit('status', '--porcelain');

Callers 3

cleanTestProjectFunction · 0.90

Calls 1

silentGitFunction · 0.90

Tested by

no test coverage detected