git-init

Creating a new repository

Create bare repository

$ git init --bare path/to/git
>>> pygit2.init_repository('path/to/git', True)
<pygit2.repository.Repository object at 0x10f08b680>

Create standard repository

$ git init path/to/git
>>> pygit2.init_repository('path/to/git', False)
<pygit2.repository.Repository object at 0x10f08b680>

References