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
Name | Type | Description |
---|---|---|
path | string | Optional. 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);