init
Initialize a new repository
param | type [= default] | description |
---|---|---|
core | string = 'default' | The plugin core identifier to use for plugin injection |
fs [deprecated] | FileSystem | The filesystem containing the git repo. Overrides the fs provided by the plugin system. |
dir | string | The working tree directory path |
gitdir | string = join(dir,'.git') | The git directory path |
bare | boolean = false | Initialize a bare repository |
noOverwrite | boolean = false | Detect if this is already a git repo and do not re-write .git/config |
return | Promise<void> | Resolves successfully when filesystem operations are complete |
Example Code:
await git.init({ dir: '$input((/))' })
console.log('done')