Skip to content

checkGitRepoClean

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 { checkGitRepoClean } from 'obsidian-dev-utils/script-utils/version';

Signature:

function checkGitRepoClean(): Promise<void>

Returns: Promise<void>