1.3 KiB
1.3 KiB
git-init
Creating a new repository
Create bare repository
$> git init --bare relative/path
>>> pygit2.init_repository('relative/path', True)
<pygit2.repository.Repository object at 0x10f08b680>
Create standard repository
$> git init relative/path
>>> pygit2.init_repository('relative/path', False)
<pygit2.repository.Repository object at 0x10f08b680>