Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 788 Bytes

add.md

File metadata and controls

40 lines (31 loc) · 788 Bytes
name cbbaseinfo cbparameters data
add
description
Adds changes in the local repository to the staging area at the given path.
parameters returns
name typeName description
path
string
The file system path of the local Git repository.
signatureTypeName description typeArgs
Promise
A promise that resolves with the response from the add event.
type name
intrinsic
any
name category link
add
git
add.md

Status

Comming soon...

Example

await git.add('/path/to/repo/file.txt')

Explaination

Add changes in the specified directory to the staging area. It has one parameter.

path: A string specifying the path of the directory or files to be added.