Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 909 Bytes

branch.md

File metadata and controls

45 lines (35 loc) · 909 Bytes
name cbbaseinfo cbparameters data
branch
description
Creates a new branch in the local repository at the given path.
parameters returns
name typeName description
path
string
The file system path of the local Git repository.
name typeName description
branch
string
The name of the new branch to create.
signatureTypeName description typeArgs
Promise
A promise that resolves with the response from the branch event.
type name
intrinsic
any
name category link
branch
git
branch.md

Status

Comming soon...

Example

await git.branch('/path/to/repo', 'new-branch')

Explaination

Creates a new branch in the local repository.It has two parameter.

path: A string specifying the local repository path.

branch: A string specifying the new branch name.