class Git::Commands::Init

Implements the ‘git init` command

Create an empty Git repository or reinitialize an existing one.

@example Typical usage

init = Git::Commands::Init.new(execution_context)
init.call
init.call('my-repo')
init.call('my-repo.git', bare: true)
init.call('my-repo', initial_branch: 'main')
init.call('my-repo', template: '/path/to/templates')

@note ‘arguments` block audited against git-scm.com/docs/git-init/2.53.0

@see git-scm.com/docs/git-init git-init

@see Git::Commands

@api private