Skip to main content

git-sync-js / init

Module: init

Table of contents

Interfaces

Functions

Functions

initGitWithBranch

initGitWithBranch(dir, branch?, options?): Promise<void>

Init and immediately checkout the branch, other wise the branch will be HEAD, which is annoying in the later steps

Parameters

NameTypeDefault value
dirstringundefined
branchstringdefaultGitInfo.branch
options?IGitInitOptionsundefined

Returns

Promise<void>

Defined in

src/init.ts:32