Opens a Git repository on the file system, optionally creates and initializes a new repository
public static open ( string $repositoryPath, |
||
$repositoryPath | string | The full path to the repository |
$git | The Git binary | |
$createIfNotExists | boolean | integer | False to fail on non-existing repositories, directory creation mode, such as 0755 if the command should create the directory and init the repository instead |
$initArguments | array | null | Arguments to be passed to git-init if initializing a repository |
$findRepositoryRoot | boolean | False to use the repository path as the root directory. |
return |