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. |
|
|
|
name |
category |
link |
branch |
git |
branch.md |
|
Comming soon...
await git.branch('/path/to/repo', 'new-branch')
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.