Skip to main content

push

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

Pushes committed changes to the remote repository.

An alias for providing a shorter method name. Both methods perform the same push operation.

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.push();
console.log(result);