Skip to content

assertGitRepoClean

Checks if the Git repository is clean, meaning there are no uncommitted changes.

Throws an error if the Git repository is not clean.

Import:

import { assertGitRepoClean } from '@mnaoumov/typescript-dev-toolkit/version';

Signature:

function assertGitRepoClean(): Promise<void>

Returns: Promise<void>