method GitOperations.prototype.hasUncommittedChanges GitOperations.prototype.hasUncommittedChanges(): Promise<boolean> Check for uncommitted changes in the working directory. Examples Example 1 if (await git.hasUncommittedChanges()) { console.error("Uncommitted changes found. Please commit or stash."); process.exit(1); } Return Type Promise<boolean> True if there are uncommitted changes