name |
cbbaseinfo |
cbparameters |
data |
checkout |
description |
Checks out a branch or commit 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 branch or commit to check out. |
|
|
signatureTypeName |
description |
typeArgs |
Promise |
A promise that resolves with the response from the checkout event. |
|
|
|
name |
category |
link |
checkout |
git |
checkout.md |
|
Comming soon...
await git.checkout('/path/to/repo', 'feature-branch')
Check out a specific branch in the local repository. It has two parameter.
path: A string specifying the local repository path.
branch: A string specifying the branch name to be checked out.