Skip to main content

commit

codebolt.git.commit(message: string): Promise<any>
Commits the staged changes in the local repository with the given commit message.

Parameters

NameTypeDescription
messagestringThe commit message to use for the commit.

Returns:

 Promise<any>
A promise that resolves with the response from the commit event.

Example


const commitMessage = await codebolt.git.commit('test');

Explaination

To use the codebolt.git.commit method properly, you need to understand how to make a commit in a Git repository using this method. The codebolt.git.commit function is likely used to commit changes in a Git repository with a specified commit message.