git_repository *repo = NULL;
int error = git_repository_init(&repo, "/tmp/…", false);
git_repository ** out pointer to the repo which will be created or reinitialized
const char * path the path to the repository
unsigned int 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.