init
codebolt.git.init(path: string): Promise<any>
Initializes a new Git repository at the given path.
Parameters
Name | Type | Description |
---|---|---|
path | string | The file system path where the Git repository should be initialized. |
Returns:
Promise<any>
A promise that resolves with the response from the init event.Status
Comming soon...
Example
await codebolt.git.init('/path/to/repo')
Explaination
Initialize a new Git repository in the specified directory. It has one parameter.
path: A string specifying the directory path where the new Git repository should be initialized.