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
Name | Type | Default value |
---|---|---|
dir | string | undefined |
branch | string | defaultGitInfo.branch |
options? | IGitInitOptions | undefined |
Returns
Promise
<void
>