コンテンツにスキップ

InitOpts

このコンテンツはまだ日本語訳がありません。

InitOpts = object

Defined in: src/core/git.ts:88

Options for git init

Properties

bare?

optional bare: boolean

Defined in: src/core/git.ts:90


cleanupOnAbort?

optional cleanupOnAbort: boolean

Defined in: src/core/git.ts:98

Whether to clean up the target directory if the operation is aborted.

Default

true

initialBranch?

optional initialBranch: string

Defined in: src/core/git.ts:91


objectFormat?

optional objectFormat: "sha1" | "sha256"

Defined in: src/core/git.ts:113

Specify the hash algorithm to use (sha1 or sha256)


quiet?

optional quiet: boolean

Defined in: src/core/git.ts:111

Operate quietly (suppress output)


separateGitDir?

optional separateGitDir: string

Defined in: src/core/git.ts:93

Store .git directory at specified path instead of inside the repository


shared?

optional shared: boolean | "group" | "all" | "world" | "everybody" | number

Defined in: src/core/git.ts:109

Set repository sharing level

  • ‘group’: Group writable
  • ‘all’/‘world’/‘everybody’: World readable
  • number: Octal permissions

template?

optional template: string

Defined in: src/core/git.ts:102

Directory with templates for the new repository