Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 965 Bytes

checkout.md

File metadata and controls

46 lines (35 loc) · 965 Bytes
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.
type name
intrinsic
any
name category link
checkout
git
checkout.md

Status

Comming soon...

Example

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

Explaination

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.