init_repository


Description:

public static Repository? init_repository (File location, bool is_bare) throws Error

Creates a new git repository in the given folder.

Parameters:

location

the location of the repository.

is_bare

if true, a git repository without a working directory is created at the pointed path. If false, provided path will be considered as the working directory into which the .git directory will be created.

Returns:

a newly created Repository.