Skip to main content

status

codebolt.git.status(path: string): Promise
Retrieves the status of the Git repository. Shows working tree status including staged, unstaged, and untracked files.

Parameters

NameTypeDescription
pathstringOptional. The file system path of the local Git repository. If not provided, uses the current directory.

Examples

Basic Status Check

// Check status of current repository
const statusResult = await codebolt.git.status();
console.log('✅ Git status result:', statusResult);

Status Check at Specific Path

// Check status of repository at specific path
const statusResult = await codebolt.git.status('/path/to/repo');
console.log('Repository status:', statusResult);