Skip to main content

status

client.git.status(data?: GitStatusRequest): Promise<GitStatus>

Retrieves the current Git status of the working directory.

Returns information about staged, unstaged, and untracked files, similar to running git status from the command line.

Parameters

ParameterTypeRequiredDescription
dataGitStatusRequestNoOptional parameters to scope the status check

Returns

Promise<GitStatus> — A promise that resolves to the of the repository

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.git.status();
console.log(result);