Skip to main content

git-sync-js / clone

Module: clone

Table of contents

Functions

Functions

clone

clone(options): Promise<void>

Parameters

NameTypeDefault valueDescription
optionsObjectundefined-
options.defaultGitInfo?ObjectundefinedOptional fallback of userInfo. If some info is missing in userInfo, will use defaultGitInfo instead.
options.defaultGitInfo.branchstring'main'-
options.defaultGitInfo.emailstring'gitsync@gmail.com'-
options.defaultGitInfo.gitUserNamestring'gitsync'-
options.defaultGitInfo.remotestring'origin'-
options.dirstringundefinedwiki folder path, can be relative, should exist before function call
options.logger?ILoggerundefined-
options.remoteUrl?stringundefinedthe storage service url we are sync to, for example your github repo url
options.userInfo?IGitUserInfosundefineduser info used in the commit message

Returns

Promise<void>

Defined in

src/clone.ts:10