Skip to main content

pushToRemote

client.git.pushToRemote(data?: GitPushRequest): Promise<unknown>

Pushes committed changes to the remote repository.

Uploads local commits to the configured remote. This is the standard way to share local changes with the remote repository.

Parameters

ParameterTypeRequiredDescription
dataGitPushRequestNoOptional push parameters such as branch or force flag

Returns

Promise<unknown> — A promise that resolves when the push is complete

Example

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

const client = new CodeBoltClient();

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