module Git
def self.init(directory = '.', options = {})
- See: https://git-scm.com/docs/git-init - git init
Other tags:
- Example: Initialize a repository in a non-default location (outside of the working copy) -
Example: Initialize a bare repository -
Example: Initialize a repository in some other directory -
Example: Initialize a repository in the current directory -
Returns:
-
(Git::Base)
- an object that can execute git commands in the context
Options Hash:
(**options)
-
:log
(Logger
) -- A logger to use for Git operations. Git -
:repository
(Pathname
) -- the path to put the newly initialized -
:initial_branch
(String
) -- Use the specified name for the -
:bare
(Boolean
) -- Instead of creating a repository at
Parameters:
-
options
(Hash
) -- The options for this command (see list of valid -
directory
(Pathname
) -- If the `:bare` option is NOT given or is not
def self.init(directory = '.', options = {}) Base.init(directory, options) end