Skip to main content

pull

client.git.pull(data?: GitPullRequest): Promise<unknown>

Pulls changes from the remote repository.

Downloads and integrates remote changes into the current branch. Equivalent to running git pull from the command line.

Parameters​

ParameterTypeRequiredDescription
dataGitPullRequestNoOptional pull parameters such as remote name or branch

Returns​

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

Example​

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

const client = new CodeBoltClient();

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